diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-29 10:27:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-29 10:27:35 +0100 |
commit | fef82b761b5d112c137934c4b6c699056e910264 (patch) | |
tree | b070c8061c7d61e7858ac2481c5b21e0487f09ec /starmath/source | |
parent | 37ef1e8c958abc81bb87c2c12f35c885d27fead0 (diff) |
fix crash I saw testing this earlier
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/edit.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index a8533abe3cb9..83fcfab0351b 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -98,7 +98,8 @@ void SmGetLeftSelectionPart(const ESelection aSel, bool SmEditWindow::IsInlineEditEnabled() { - return GetView()->IsInlineEditEnabled(); + SmViewShell *pView = GetView(); + return pView ? pView->IsInlineEditEnabled() : false; } //////////////////////////////////////// |