summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
authoros <os@openoffice.org>2009-10-30 14:49:21 +0100
committeros <os@openoffice.org>2009-10-30 14:49:21 +0100
commit3a9b9be6eae79098781092c3564c3f8206186f6b (patch)
tree02ed4ef6bfd5fe5072fa161185cce7a86be76414 /framework/source
parent81e9d2d97d8261db441d600d61d65a8743d5b3c1 (diff)
#i103838# nothing to dispatch if xPopupMenu.execute() returns NULL
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/uielement/langselectionstatusbarcontroller.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/source/uielement/langselectionstatusbarcontroller.cxx b/framework/source/uielement/langselectionstatusbarcontroller.cxx
index bccd553b57d3..b87a6e333f11 100644
--- a/framework/source/uielement/langselectionstatusbarcontroller.cxx
+++ b/framework/source/uielement/langselectionstatusbarcontroller.cxx
@@ -337,7 +337,7 @@ void LangSelectionStatusbarController::LangMenu()throw (::com::sun::star::uno::R
mRectangle.Y = mMousePos.Y();
sal_Int16 nId = xPopupMenu->execute( xParent, mRectangle, com::sun::star::awt::PopupMenuDirection::EXECUTE_UP+16 );
//click "More..."
- if ( m_xFrame.is() )
+ if ( nId && m_xFrame.is() )
{
uno::Reference< XDispatchProvider > xDispatchProvider( m_xFrame, UNO_QUERY );
util::URL aURL;