diff options
author | sb <sb@openoffice.org> | 2010-03-04 23:05:27 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2010-03-04 23:05:27 +0100 |
commit | 4109a5e46ca0fca5ac9325ae0375d7ca0c1a6281 (patch) | |
tree | acf065e291575006b100daae081732e8b6251931 /linguistic | |
parent | 19a51dccadb906d6a91a2d702530c210fb009a94 (diff) | |
parent | 9792aee99e3b02fec28389c6bbbd4d4bd0dc5de4 (diff) |
merged in re/DEV300_next towards DEV300_m74
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 f48ac10fdb..82caafe02e 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() )) { |