summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/app/inputwin.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index e35e1d41505e..026389e3b864 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -1635,8 +1635,10 @@ IMPL_LINK_NOARG_TYPED(ScTextWnd, ModifyHdl, LinkParamNone*, void)
void ScTextWnd::StopEditEngine( bool bAll )
{
- if (pEditEngine)
- pEditEngine->SetNotifyHdl(Link<EENotify&, void>());
+ if (!pEditEngine)
+ return;
+
+ pEditEngine->SetNotifyHdl(Link<EENotify&, void>());
if (pEditView)
{