[Libreoffice-commits] .: Branch 'libreoffice-3-4-2' - 2 commits - starmath/source
Petr Mladek
pmladek at kemper.freedesktop.org
Mon Jul 18 08:54:21 PDT 2011
starmath/source/view.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit da18e058e54024bfb1a8694e0a316423a57f154b
Author: Miklos Vajna <vmiklos at frugalware.org>
Date: Fri Jul 15 18:11:43 2011 +0200
starmath: check for edit window when inline editing is enabled
Signed-off-by: Michael Meeks <michael.meeks at novell.com>
Signed-off-by: Petr Mladek <pmladek at suse.cz>
Signed-off-by: Jonas Finnemann Jensen <jopsen at gmail.com>
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 662911e..c924e31 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -224,7 +224,8 @@ void SmGraphicWindow::GetFocus()
{
if (!IsInlineEditEnabled())
return;
- pViewShell->GetEditWindow()->Flush();
+ if (pViewShell->GetEditWindow())
+ pViewShell->GetEditWindow()->Flush();
//Let view shell know what insertions should be done in visual editor
pViewShell->SetInsertIntoEditWindow(false);
SetIsCursorVisible(true);
commit 33f8e4826ca01860cef7f85ab5f4ccb298ec371d
Author: Miklos Vajna <vmiklos at frugalware.org>
Date: Thu Jul 14 16:44:32 2011 +0200
starmath: check for existing edit window
Signed-off-by: Michael Meeks <michael.meeks at novell.com>
Signed-off-by: Petr Mladek <pmladek at suse.cz>
Signed-off-by: Jonas Finnemann Jensen <jopsen at gmail.com>
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index 3a099c3..662911e 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