diff options
author | Thomas Lange [tl] <tl@openoffice.org> | 2010-03-24 13:08:23 +0100 |
---|---|---|
committer | Thomas Lange [tl] <tl@openoffice.org> | 2010-03-24 13:08:23 +0100 |
commit | d77eda7077fd8b978f4335270e93756977517955 (patch) | |
tree | 0192b33913b88721f818b7b333133d52213e6cf8 /linguistic | |
parent | fc598643c579d63ac9750aca41bd130d06886390 (diff) | |
parent | 6b9635f6b2d62537052bdc11ec84247d3bc72832 (diff) |
cws tl74: merge with DEV300_m75
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 81c7932a5092..90e433f50f07 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() )) { |