summaryrefslogtreecommitdiff
path: root/starmath/source/view.cxx
diff options
context:
space:
mode:
authorJonas Finnemann Jensen <jopsen@gmail.com>2010-11-02 20:13:22 +0100
committerJonas Finnemann Jensen <jopsen@gmail.com>2010-11-02 20:13:22 +0100
commit50b9e8579935d277ae9e16faa12fb433b9243db9 (patch)
treee1794f0b0b03ada488dd768e0bdf0e590c41c2cc /starmath/source/view.cxx
parent13a41ae5f768eba2b2df8430e1f7be65e10c0ed5 (diff)
Fixed crash when choosing starmath from start screen
Diffstat (limited to 'starmath/source/view.cxx')
-rw-r--r--starmath/source/view.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 109332f8dcc7..a48fe61b2444 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()