diff --git a/sd/source/ui/view/drviews3.cxx b/sd/source/ui/view/drviews3.cxx index 5664219e83ca..c5e1450f70e2 100644 --- a/sd/source/ui/view/drviews3.cxx +++ b/sd/source/ui/view/drviews3.cxx @@ -510,7 +510,7 @@ void DrawViewShell::ExecCtrl(SfxRequest& rReq) if (oox::drawingml::DrawingML::IsDiagram(xShape)) { VclAbstractDialogFactory* pFact = VclAbstractDialogFactory::Create(); - VclPtr pDlg + ScopedVclPtr pDlg = pFact->CreateDiagramDialog(GetFrameWeld(), pObj->GetDiagramData()); pDlg->Execute(); }