diff options
author | Jonas Finnemann Jensen <jopsen@gmail.com> | 2010-11-02 20:13:22 +0100 |
---|---|---|
committer | Rene Engelhard <rene@debian.org> | 2010-11-03 00:09:12 +0100 |
commit | df6ec4d4cf50c556e52a32371b688af6bbd8be6b (patch) | |
tree | 638336b48a3c150a04451def2e226a6f3afc1aa7 /starmath | |
parent | 1455a3780d07448ee010ef489bd337244f9870d0 (diff) |
Fixed crash when choosing starmath from start screen
Diffstat (limited to 'starmath')
-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 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() |