diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2011-07-15 18:11:43 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2011-07-15 18:17:21 +0200 |
commit | 94959497c0a9fe956f0b12a35ae98148db25bd62 (patch) | |
tree | 3395d2e73c0831c3bff6101f24958fdee11bbdf3 | |
parent | 0f00ab3bc9004d56488e28ca55c4a62a435876f7 (diff) |
starmath: check for edit window when inline editing is enabled
-rw-r--r-- | starmath/source/view.cxx | 3 |
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); |