diff options
Diffstat (limited to 'svx/source/gallery2/galtheme.cxx')
-rw-r--r-- | svx/source/gallery2/galtheme.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index b3e2c39d477a..263af9ffeebb 100644 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -808,9 +808,9 @@ bool GalleryTheme::GetGraphic( sal_uIntPtr nPos, Graphic& rGraphic, bool bProgre bRet = true; else { - VirtualDevice aVDev; - aVDev.SetMapMode( MapMode( MAP_100TH_MM ) ); - FmFormView aView( aModel.GetModel(), &aVDev ); + ScopedVclPtrInstance< VirtualDevice > pVDev; + pVDev->SetMapMode( MapMode( MAP_100TH_MM ) ); + FmFormView aView( aModel.GetModel(), pVDev ); aView.hideMarkHandles(); aView.ShowSdrPage(aView.GetModel()->GetPage(0)); |