diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2011-07-15 18:11:43 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2011-07-15 18:17:21 +0200 |
commit | 704581652cacc2d86f2b369a866b24dab2e7e292 (patch) | |
tree | 643c07ad94095ba23eedd105a668373b7cbc3cee /starmath | |
parent | cc0c8a38e217cc047ae62872f9e81600646251df (diff) |
starmath: check for edit window when inline editing is enabled
Diffstat (limited to 'starmath')
-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 3d4ed2fd5f81..ffd5413eced8 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); |