diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2011-07-14 16:44:32 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2011-07-15 17:14:23 +0200 |
commit | cc0c8a38e217cc047ae62872f9e81600646251df (patch) | |
tree | 04ab887288a8cbee6818913a2fffa20fe99bd2ab /starmath/source | |
parent | 28b982d3a3effd10db4c35cf6f21a0f36e14064e (diff) |
starmath: check for existing edit window
Diffstat (limited to 'starmath/source')
-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 |