diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2016-03-03 00:32:25 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2016-03-03 00:39:15 +0200 |
commit | 57c3b726d0845a2070acccbe6a30837c3cc8a341 (patch) | |
tree | 8f87194be55b6804ceb30ab9f5fbc4342f1e9ea2 /sw/source | |
parent | 57200e6a1cbea3201dc6c0b20e483b29ad979599 (diff) |
Break SmartTagMenuController-VCLXMenu cycle
Change-Id: I6da45f6b6750f78d309fa3080eada1931640f188
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/uiview/viewling.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx index 5bba5c453a09..3050d02eee54 100644 --- a/sw/source/uibase/uiview/viewling.cxx +++ b/sw/source/uibase/uiview/viewling.cxx @@ -819,6 +819,10 @@ void SwView::ExecSmartTagPopup( const Point& rPt ) if ( aToFill.HasArea() ) xPopupMenu->execute( m_pEditWin->GetComponentInterface(), VCLUnoHelper::ConvertToAWTRect( m_pEditWin->LogicToPixel( aToFill.SVRect() ) ), css::awt::PopupMenuDirection::EXECUTE_DOWN ); + + css::uno::Reference< css::lang::XComponent > xComponent( xPopupController, css::uno::UNO_QUERY ); + if ( xComponent.is() ) + xComponent->dispose(); } m_pWrtShell->Pop( false ); |