[Libreoffice-commits] .: starmath/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Fri Jul 15 09:21:17 PDT 2011


 starmath/source/view.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 94959497c0a9fe956f0b12a35ae98148db25bd62
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Fri Jul 15 18:11:43 2011 +0200

    starmath: check for edit window when inline editing is enabled

diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index b3d77ff..414138a 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);


More information about the Libreoffice-commits mailing list