summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2011-07-14 16:44:32 +0200
committerPetr Mladek <pmladek@suse.cz>2011-07-18 17:52:40 +0200
commit728a70fbd7da2d94a2d078717cd7a044e6508190 (patch)
tree3851df2e193e112c959cd2476961802a499cdc61 /starmath
parent3f690a79cdd7c89e4e49febf5200bd8dbe76b568 (diff)
starmath: check for existing edit window
Signed-off-by: Michael Meeks <michael.meeks@novell.com> Signed-off-by: Petr Mladek <pmladek@suse.cz> Signed-off-by: Jonas Finnemann Jensen <jopsen@gmail.com>
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 21253b0fad86..31f4118e1c8c 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