summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-07-15 18:11:43 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2011-07-15 18:17:21 +0200
commit94959497c0a9fe956f0b12a35ae98148db25bd62 (patch)
tree3395d2e73c0831c3bff6101f24958fdee11bbdf3
parent0f00ab3bc9004d56488e28ca55c4a62a435876f7 (diff)
starmath: check for edit window when inline editing is enabled
-rw-r--r--starmath/source/view.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index b3d77ff417..414138ad2e 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);