diff options
-rw-r--r-- | starmath/source/view.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 120e3b5bfe..7874d0666e 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() |