diff options
author | Ingrid Halama <iha@openoffice.org> | 2003-10-30 11:15:45 +0000 |
---|---|---|
committer | Ingrid Halama <iha@openoffice.org> | 2003-10-30 11:15:45 +0000 |
commit | 3e1cbc6692634f33953dc28a9660f1a6f1d9c00d (patch) | |
tree | c1e3eec03b2a319dbd23f6413cb5d9727f2b9d59 /chart2 | |
parent | 14c4c57de261341ebb6bf4f5d022295b86b5470d (diff) |
prevent deleting view in text edit mode
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 7 |
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; |