diff options
-rw-r--r-- | chart2/source/controller/main/ChartController_Window.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx index b1daf046eaee..4e7a7912165d 100644 --- a/chart2/source/controller/main/ChartController_Window.cxx +++ b/chart2/source/controller/main/ChartController_Window.cxx @@ -1217,11 +1217,10 @@ void ChartController::execute_Command( const CommandEvent& rCEvt ) } } - css::uno::Sequence< css::uno::Any > aArgs( aMenuName.isEmpty() ? 2 : 3 ); + css::uno::Sequence< css::uno::Any > aArgs( 3 ); aArgs[0] <<= comphelper::makePropertyValue( "IsContextMenu", true ); aArgs[1] <<= comphelper::makePropertyValue( "Frame", m_xFrame ); - if ( !aMenuName.isEmpty() ) - aArgs[2] <<= comphelper::makePropertyValue( "Value", aMenuName ); + aArgs[2] <<= comphelper::makePropertyValue( "Value", aMenuName ); css::uno::Reference< css::frame::XPopupMenuController > xPopupController( m_xCC->getServiceManager()->createInstanceWithArgumentsAndContext( |