From 704581652cacc2d86f2b369a866b24dab2e7e292 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 15 Jul 2011 18:11:43 +0200 Subject: starmath: check for edit window when inline editing is enabled --- starmath/source/view.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'starmath') diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 3d4ed2fd5f81..ffd5413eced8 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -224,7 +224,8 @@ void SmGraphicWindow::GetFocus() { if (!IsInlineEditEnabled()) return; - pViewShell->GetEditWindow()->Flush(); + if (pViewShell->GetEditWindow()) + pViewShell->GetEditWindow()->Flush(); //Let view shell know what insertions should be done in visual editor pViewShell->SetInsertIntoEditWindow(false); SetIsCursorVisible(true); -- cgit