summaryrefslogtreecommitdiff
path: root/svx/source/stbctrls/pszctrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/stbctrls/pszctrl.cxx')
-rw-r--r--svx/source/stbctrls/pszctrl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/stbctrls/pszctrl.cxx b/svx/source/stbctrls/pszctrl.cxx
index 85eb356fd81c..a071173bea90 100644
--- a/svx/source/stbctrls/pszctrl.cxx
+++ b/svx/source/stbctrls/pszctrl.cxx
@@ -317,10 +317,10 @@ void SvxPosSizeStatusBarControl::Command( const CommandEvent& rCEvt )
sal_uInt32 nSelect = pImpl->nFunctionSet;
if (!nSelect)
nSelect = ( 1 << PSZ_FUNC_NONE );
- FunctionPopup_Impl aMenu( nSelect );
- if ( aMenu.Execute( &GetStatusBar(), rCEvt.GetMousePosPixel() ) )
+ ScopedVclPtrInstance<FunctionPopup_Impl> aMenu( nSelect );
+ if ( aMenu->Execute( &GetStatusBar(), rCEvt.GetMousePosPixel() ) )
{
- nSelect = aMenu.GetSelected();
+ nSelect = aMenu->GetSelected();
if (nSelect)
{
if (nSelect == (1 << PSZ_FUNC_NONE))