[Libreoffice-commits] .: starmath/source

Caolán McNamara caolan at kemper.freedesktop.org
Fri Oct 29 02:27:41 PDT 2010


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

New commits:
commit aba1769398485ae2d5973ba363719f7a381e9280
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Oct 29 10:27:35 2010 +0100

    fix crash I saw testing this earlier

diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx
index a9a1ad2..cf2c186 100644
--- a/starmath/source/edit.cxx
+++ b/starmath/source/edit.cxx
@@ -98,7 +98,8 @@ void SmGetLeftSelectionPart(const ESelection aSel,
 
 bool SmEditWindow::IsInlineEditEnabled()
 {
-    return GetView()->IsInlineEditEnabled();
+    SmViewShell *pView = GetView();
+    return pView ? pView->IsInlineEditEnabled() : false;
 }
 
 ////////////////////////////////////////


More information about the Libreoffice-commits mailing list