diff options
Diffstat (limited to 'framework/source/uielement/uicommanddescription.cxx')
-rw-r--r-- | framework/source/uielement/uicommanddescription.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/source/uielement/uicommanddescription.cxx b/framework/source/uielement/uicommanddescription.cxx index 95c03e00af37..29edf6aa6312 100644 --- a/framework/source/uielement/uicommanddescription.cxx +++ b/framework/source/uielement/uicommanddescription.cxx @@ -57,6 +57,7 @@ #include <vcl/mnemonic.hxx> #include <comphelper/sequence.hxx> +#include <comphelper/string.hxx> #include <rtl/logfile.hxx> //_________________________________________________________________________________________________________________ @@ -324,7 +325,7 @@ void ConfigurationAccess_UICommand::fillInfoFromResult( CmdToInfoMap& rCmdInfo, rStr.SearchAndReplaceAllAscii( "%PRODUCTNAME", utl::ConfigManager::getProductName() ); rCmdInfo.aLabel = ::rtl::OUString( rStr ); - rStr.EraseTrailingChars( '.' ); // Remove "..." from string + rStr = comphelper::string::stripEnd(rStr, '.'); // Remove "..." from string rCmdInfo.aCommandName = ::rtl::OUString( MnemonicGenerator::EraseAllMnemonicChars( rStr )); rCmdInfo.bCommandNameCreated = sal_True; } |