summaryrefslogtreecommitdiffstats
path: root/chart2/source/controller/main/ChartController.cxx
diff options
context:
space:
mode:
authorIngrid Halama <iha@openoffice.org>2003-10-30 11:15:45 +0000
committerIngrid Halama <iha@openoffice.org>2003-10-30 11:15:45 +0000
commit3e1cbc6692634f33953dc28a9660f1a6f1d9c00d (patch)
treec1e3eec03b2a319dbd23f6413cb5d9727f2b9d59 /chart2/source/controller/main/ChartController.cxx
parentdeliver libraries for installation set (diff)
downloadcore-3e1cbc6692634f33953dc28a9660f1a6f1d9c00d.tar.gz
core-3e1cbc6692634f33953dc28a9660f1a6f1d9c00d.zip
prevent deleting view in text edit mode
Diffstat (limited to 'chart2/source/controller/main/ChartController.cxx')
-rw-r--r--chart2/source/controller/main/ChartController.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index cdcb20e3aba4..c21b4983e565 100644
--- a/chart2/source/controller/main/ChartController.cxx
+++ b/chart2/source/controller/main/ChartController.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ChartController.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: iha $ $Date: 2003-10-28 16:06:11 $
+ * last change: $Author: iha $ $Date: 2003-10-30 12:15:45 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -473,6 +473,9 @@ void SAL_CALL ChartController
::impl_deleteView()
throw(uno::RuntimeException)
{
+ if( m_pDrawViewWrapper->IsTextEdit() )
+ this->EndTextEdit();
+
delete m_pChartView; m_pChartView = NULL;
delete m_pDrawViewWrapper; m_pDrawViewWrapper = NULL;
delete m_pDrawModelWrapper; m_pDrawModelWrapper = NULL;