summaryrefslogtreecommitdiff
path: root/starmath/source/edit.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-10-29 10:27:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-10-29 10:27:35 +0100
commitfef82b761b5d112c137934c4b6c699056e910264 (patch)
treeb070c8061c7d61e7858ac2481c5b21e0487f09ec /starmath/source/edit.cxx
parent37ef1e8c958abc81bb87c2c12f35c885d27fead0 (diff)
fix crash I saw testing this earlier
Diffstat (limited to 'starmath/source/edit.cxx')
-rw-r--r--starmath/source/edit.cxx3
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;
}
////////////////////////////////////////