diff options
Diffstat (limited to 'sd/source/ui/view/drviews5.cxx')
-rw-r--r-- | sd/source/ui/view/drviews5.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/view/drviews5.cxx b/sd/source/ui/view/drviews5.cxx index 2e98ec506d2b..372a931895f9 100644 --- a/sd/source/ui/view/drviews5.cxx +++ b/sd/source/ui/view/drviews5.cxx @@ -64,6 +64,7 @@ #include "FormShellManager.hxx" #include "LayerDialogContent.hxx" #include "DrawController.hxx" +#include <boost/scoped_ptr.hpp> namespace sd { @@ -619,12 +620,11 @@ void DrawViewShell::SetActiveTabLayerIndex (int nIndex) // Tell the draw view and the tab control of the new active layer. mpDrawView->SetActiveLayer (pBar->GetPageText (pBar->GetPageId ((sal_uInt16)nIndex))); pBar->SetCurPageId (pBar->GetPageId ((sal_uInt16)nIndex)); - SdUnoDrawView* pUnoDrawView = new SdUnoDrawView ( + boost::scoped_ptr<SdUnoDrawView> pUnoDrawView(new SdUnoDrawView ( *this, - *GetView()); + *GetView())); ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XLayer> rLayer = pUnoDrawView->getActiveLayer(); GetViewShellBase().GetDrawController().fireChangeLayer( &rLayer ); - delete pUnoDrawView; } } } |