[Libreoffice-commits] core.git: svx/source
Maxim Monastirsky
momonasmon at gmail.com
Thu Oct 27 17:20:45 UTC 2016
svx/source/mnuctrls/smarttagmenu.cxx | 5 -----
1 file changed, 5 deletions(-)
New commits:
commit 4433d95b374c13a3501cdf3a6e273f68eb49873a
Author: Maxim Monastirsky <momonasmon at gmail.com>
Date: Thu Oct 27 20:15:23 2016 +0300
MenuItemData now properly disposes the submenu
At least since:
commit ee79a2dd7ea60e902cab3a9203e307b8a78fee23
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jul 29 14:33:22 2016 +0100
Resolves: tdf#101169 crash using column menu in base
Change-Id: Ib1bc70e8e66f2be123d8a3e5d5e213775e9a5762
diff --git a/svx/source/mnuctrls/smarttagmenu.cxx b/svx/source/mnuctrls/smarttagmenu.cxx
index d1d279b..404062f 100644
--- a/svx/source/mnuctrls/smarttagmenu.cxx
+++ b/svx/source/mnuctrls/smarttagmenu.cxx
@@ -50,7 +50,6 @@ private:
sal_uInt32 nActionID ) : m_xAction( xAction ), m_xSmartTagProperties( xSmartTagProperties ), m_nActionID( nActionID ) {}
};
std::vector< InvokeAction > m_aInvokeActions;
- std::vector< VclPtr< PopupMenu > > m_aSubMenus;
std::unique_ptr< const SvxSmartTagItem > m_pSmartTagItem;
};
@@ -61,15 +60,12 @@ SmartTagMenuController::SmartTagMenuController( const css::uno::Reference< css::
SmartTagMenuController::~SmartTagMenuController()
{
- for (auto& i : m_aSubMenus)
- i.disposeAndClear();
}
void SmartTagMenuController::statusChanged( const css::frame::FeatureStateEvent& rEvent )
throw ( css::uno::RuntimeException, std::exception )
{
resetPopupMenu( m_xPopupMenu );
- m_aSubMenus.clear();
css::uno::Sequence< css::beans::PropertyValue > aProperties;
if ( rEvent.IsEnabled && ( rEvent.State >>= aProperties ) )
@@ -155,7 +151,6 @@ void SmartTagMenuController::FillMenu()
pVCLMenu->InsertItem( nMenuId, aSmartTagCaption );
VclPtrInstance<PopupMenu> pMenu;
pSubMenu = pMenu;
- m_aSubMenus.push_back( pMenu );
pVCLMenu->SetPopupMenu( nMenuId++, pSubMenu );
}
pSubMenu->SetSelectHdl( LINK( this, SmartTagMenuController, MenuSelect ) );
More information about the Libreoffice-commits
mailing list