summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-07-15 18:11:43 +0200
committerPetr Mladek <pmladek@suse.cz>2011-07-18 17:53:26 +0200
commitda18e058e54024bfb1a8694e0a316423a57f154b (patch)
tree766aa8100a30ac34c554d3d4ab6235c973dbbfe6
parent33f8e4826ca01860cef7f85ab5f4ccb298ec371d (diff)
starmath: check for edit window when inline editing is enabled
Signed-off-by: Michael Meeks <michael.meeks@novell.com> Signed-off-by: Petr Mladek <pmladek@suse.cz> Signed-off-by: Jonas Finnemann Jensen <jopsen@gmail.com>
-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 662911e030..c924e31e75 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);