diff options
-rw-r--r-- | svx/source/form/fmshimp.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index 033ea0f337b8..4f3f6cd4eba7 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -408,9 +408,8 @@ namespace for (j=0; j<pCurrentArray->getLength(); ++j, ++pCurrentListeners) { OUString aListener = (*pCurrentListeners).getTypeName(); - sal_Int32 nTokens = comphelper::string::getTokenCount(aListener, '.'); - if (nTokens) - aListener = aListener.getToken(nTokens - 1, '.'); + if (!aListener.isEmpty()) + aListener = aListener.copy(aListener.lastIndexOf('.')+1); if (aListener == pCurrent->ListenerType) // the current ScriptEventDescriptor doesn't match the current listeners class |