diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2011-07-14 16:44:32 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-07-18 15:57:27 +0100 |
commit | b8c8e7627e0ffd75744049228207be344ddb7118 (patch) | |
tree | b10233c485b3a49bb35cc420b20af1d9ec100825 | |
parent | 2f520ab98b2c2fd9775dd174e57ed57e7477a8ca (diff) |
starmath: check for existing edit window
Signed-off-by: Michael Meeks <michael.meeks@novell.com>
-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 3a099c331d..662911e030 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 |