diff options
-rw-r--r-- | chart2/source/controller/main/ChartController_TextEdit.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chart2/source/controller/main/ChartController_TextEdit.cxx b/chart2/source/controller/main/ChartController_TextEdit.cxx index 32e75a805d6d..bc578be38d66 100644 --- a/chart2/source/controller/main/ChartController_TextEdit.cxx +++ b/chart2/source/controller/main/ChartController_TextEdit.cxx @@ -151,8 +151,12 @@ bool ChartController::EndTextEdit() void SAL_CALL ChartController::executeDispatch_InsertSpecialCharacter() { SolarMutexGuard aGuard; - - if( m_pDrawViewWrapper && !m_pDrawViewWrapper->IsTextEdit() ) + if( !m_pDrawViewWrapper) + { + OSL_ENSURE( m_pDrawViewWrapper, "No DrawViewWrapper for ChartController" ); + return; + } + if( !m_pDrawViewWrapper->IsTextEdit() ) this->StartTextEdit(); SvxAbstractDialogFactory * pFact = SvxAbstractDialogFactory::Create(); |