[Libreoffice-commits] .: starmath/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Fri Jul 15 08:17:36 PDT 2011


 starmath/source/view.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 0f00ab3bc9004d56488e28ca55c4a62a435876f7
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Thu Jul 14 16:44:32 2011 +0200

    starmath: check for existing edit window

diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 79bfd82..b3d77ff 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


More information about the Libreoffice-commits mailing list