diff options
author | sb <sb@openoffice.org> | 2009-10-14 17:40:43 +0200 |
---|---|---|
committer | sb <sb@openoffice.org> | 2009-10-14 17:40:43 +0200 |
commit | 40af0637fe2fdd0ac92e43c01cb96a4954e22874 (patch) | |
tree | 5d00e48d9c45bf79a6544527659b9aa683509995 /linguistic | |
parent | f31fb84e0d82f71c98a710c784a0df039ca21c5f (diff) |
#i101955# implemented more change notifications
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/lngsvcmgr.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx index 41d805fe9212..368f61b4eab1 100644 --- a/linguistic/source/lngsvcmgr.cxx +++ b/linguistic/source/lngsvcmgr.cxx @@ -640,15 +640,14 @@ void LngSvcMgr::Notify( const uno::Sequence< OUString > &rPropertyNames ) for (sal_Int32 i = 0; i < nLen; ++i) { // property names look like - // "ServiceManager/ThesaurusList/cfg:any['de-CH']" + // "ServiceManager/ThesaurusList/de-CH" const OUString &rName = pPropertyNames[i]; - sal_Int32 nKeyStart, nKeyEnd; - nKeyStart = rName.indexOf( A2OU("['"), 0 ); - nKeyEnd = rName.indexOf( A2OU("']"), nKeyStart + 2); + sal_Int32 nKeyStart; + nKeyStart = rName.lastIndexOf( '/' ); OUString aKeyText; - if (nKeyStart != -1 && nKeyEnd != -1) - aKeyText = rName.copy( nKeyStart + 2, nKeyEnd - nKeyStart - 2); + if (nKeyStart != -1) + aKeyText = rName.copy( nKeyStart + 1 ); DBG_ASSERT( aKeyText.getLength() != 0, "unexpected key (lang::Locale) string" ); if (0 == rName.compareTo( aSpellCheckerList, aSpellCheckerList.getLength() )) { |