diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2011-07-15 18:11:43 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-07-18 15:57:27 +0100 |
commit | aac4ab2af1ea151839e8a41ee9a9ec4d74558367 (patch) | |
tree | 766aa8100a30ac34c554d3d4ab6235c973dbbfe6 | |
parent | b8c8e7627e0ffd75744049228207be344ddb7118 (diff) |
starmath: check for edit window when inline editing is enabled
Signed-off-by: Michael Meeks <michael.meeks@novell.com>
-rw-r--r-- | starmath/source/view.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 662911e030..c924e31e75 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); |