From 3e1cbc6692634f33953dc28a9660f1a6f1d9c00d Mon Sep 17 00:00:00 2001 From: Ingrid Halama Date: Thu, 30 Oct 2003 11:15:45 +0000 Subject: prevent deleting view in text edit mode --- chart2/source/controller/main/ChartController.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'chart2') 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; -- cgit