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
commitd1a3a5d109160b3470ddc988aeb96d11587551ca (patch)
tree7625e77d6c151fe512188b5a03668878f037ff6d
parent728a70fbd7da2d94a2d078717cd7a044e6508190 (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 31f4118e1c8c..641a8f6bcfaf 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);