[Libreoffice-commits] .: Branch 'libreoffice-3-3' - starmath/source
René Engelhard
rene at kemper.freedesktop.org
Tue Nov 2 16:10:21 PDT 2010
starmath/source/view.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 9e2d9edb05e0793bd32a84cde0a18dfd6fe0adde
Author: Jonas Finnemann Jensen <jopsen at gmail.com>
Date: Tue Nov 2 20:13:22 2010 +0100
Fixed crash when choosing starmath from start screen
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 120e3b5..7874d06 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -207,7 +207,10 @@ void SmGraphicWindow::MouseButtonDown(const MouseEvent& rMEvt)
bool SmGraphicWindow::IsInlineEditEnabled() const
{
- return pViewShell->GetEditWindow()->IsInlineEditEnabled();
+ //Avoid crash on startup (happens when starmath is selected from splash screen)
+ if(pViewShell->GetEditWindow())
+ return pViewShell->GetEditWindow()->IsInlineEditEnabled();
+ return false;
}
void SmGraphicWindow::GetFocus()
More information about the Libreoffice-commits
mailing list