summaryrefslogtreecommitdiff
path: root/filter/source/svg/svgdialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/svg/svgdialog.cxx')
-rw-r--r--filter/source/svg/svgdialog.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/filter/source/svg/svgdialog.cxx b/filter/source/svg/svgdialog.cxx
index 0420570004f2..70318fe0f6a5 100644
--- a/filter/source/svg/svgdialog.cxx
+++ b/filter/source/svg/svgdialog.cxx
@@ -143,11 +143,12 @@ Sequence< OUString > SAL_CALL SVGDialog::getSupportedServiceNames()
-Dialog* SVGDialog::createDialog( vcl::Window* pParent )
+VclPtr<Dialog> SVGDialog::createDialog( vcl::Window* pParent )
{
- return( ( /*KA: *mapResMgr.get() &&*/ mxSrcDoc.is() ) ?
- new ImpSVGDialog( pParent/*KA: , *mapResMgr*/, maFilterData ) :
- NULL );
+ if( mxSrcDoc.is() )
+ return VclPtr<ImpSVGDialog>::Create( pParent, maFilterData );
+ else
+ return VclPtr<Dialog>();
}