summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/cellsh3.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/cellsh3.cxx')
-rw-r--r--sc/source/ui/view/cellsh3.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/cellsh3.cxx b/sc/source/ui/view/cellsh3.cxx
index 6c12d034440a..b1b5d7f6a8ed 100644
--- a/sc/source/ui/view/cellsh3.cxx
+++ b/sc/source/ui/view/cellsh3.cxx
@@ -835,8 +835,8 @@ void ScCellShell::Execute( SfxRequest& rReq )
}
}
else
- MessageDialog (pDlgParent,
- ScGlobal::GetRscString(STR_INVALID_AFAREA) ).Execute();
+ ScopedVclPtrInstance<MessageDialog>(pDlgParent,
+ ScGlobal::GetRscString(STR_INVALID_AFAREA) )->Execute();
}
break;