diff options
-rw-r--r-- | starmath/source/view.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index b8e91f8981ed..3d4ed2fd5f81 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -195,6 +195,8 @@ void SmGraphicWindow::MouseButtonDown(const MouseEvent& rMEvt) if (pNode) { SmEditWindow *pEdit = pViewShell->GetEditWindow(); + if (!pEdit) + return; const SmToken aToken (pNode->GetToken()); // set selection to the beginning of the token |