diff options
-rw-r--r-- | cui/source/customize/cfgutil.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/customize/cfgutil.cxx b/cui/source/customize/cfgutil.cxx index e906b3e40128..50ee47fdaba9 100644 --- a/cui/source/customize/cfgutil.cxx +++ b/cui/source/customize/cfgutil.cxx @@ -1077,7 +1077,7 @@ void SfxConfigGroupListBox::SelectMacro( const OUString& rBasic, { const OUString aBasicName(rBasic + " " + xImp->m_sMacros); const sal_Int32 nCount = comphelper::string::getTokenCount(rMacro, '.'); - const OUString aMethod( rMacro.getToken( nCount-1, '.' ) ); + const OUString aMethod( rMacro.copy(rMacro.lastIndexOf('.')+1) ); OUString aLib; OUString aModule; if ( nCount > 2 ) |