summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-07-14 16:44:32 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2011-07-15 17:14:23 +0200
commitcc0c8a38e217cc047ae62872f9e81600646251df (patch)
tree04ab887288a8cbee6818913a2fffa20fe99bd2ab /starmath
parent28b982d3a3effd10db4c35cf6f21a0f36e14064e (diff)
starmath: check for existing edit window
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/view.cxx2
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