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 | 9e2d9edb05e0793bd32a84cde0a18dfd6fe0adde (patch) | |
tree | 97bcdd03cb74ff0d5f6f6e85eba76929db099380 | |
parent | 725d93619c03dbb51c9176ad91a8c71347708890 (diff) |
Fixed crash when choosing starmath from start screen
-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() |