summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/spelldialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/spelldialog.cxx')
-rw-r--r--sc/source/ui/view/spelldialog.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/view/spelldialog.cxx b/sc/source/ui/view/spelldialog.cxx
index 4e8ca58965e9..f46080430263 100644
--- a/sc/source/ui/view/spelldialog.cxx
+++ b/sc/source/ui/view/spelldialog.cxx
@@ -258,7 +258,8 @@ void ScSpellDialogChildWindow::Init()
bool ScSpellDialogChildWindow::IsSelectionChanged()
{
- if( !mxOldRangeList.get() || !mpViewShell || (mpViewShell != dynamic_cast<ScTabViewShell*>( SfxViewShell::Current() )) )
+ if (!mxOldRangeList || !mpViewShell
+ || (mpViewShell != dynamic_cast<ScTabViewShell*>(SfxViewShell::Current())))
return true;
if( EditView* pEditView = mpViewData->GetSpellingView() )