summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/drviews6.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/drviews6.cxx')
-rw-r--r--sd/source/ui/view/drviews6.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/drviews6.cxx b/sd/source/ui/view/drviews6.cxx
index 31c9f08a6831..c6bdfed2a8f0 100644
--- a/sd/source/ui/view/drviews6.cxx
+++ b/sd/source/ui/view/drviews6.cxx
@@ -294,9 +294,9 @@ void DrawViewShell::ExecBmpMask( SfxRequest& rReq )
if( pNewObj->IsLinkedGraphic() )
{
- MessageDialog aQueryBox( (vcl::Window*) GetActiveWindow(),"QueryUnlinkImageDialog","modules/sdraw/ui/queryunlinkimagedialog.ui");
+ ScopedVclPtrInstance< MessageDialog > aQueryBox( (vcl::Window*) GetActiveWindow(),"QueryUnlinkImageDialog","modules/sdraw/ui/queryunlinkimagedialog.ui");
- if (RET_YES == aQueryBox.Execute())
+ if (RET_YES == aQueryBox->Execute())
pNewObj->ReleaseGraphicLink();
else
{