diff options
Diffstat (limited to 'lingucomponent')
-rw-r--r-- | lingucomponent/source/lingutil/lingutil.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx index 4f721635160c..8c4e04f63a05 100644 --- a/lingucomponent/source/lingutil/lingutil.cxx +++ b/lingucomponent/source/lingutil/lingutil.cxx @@ -137,7 +137,7 @@ std::vector< SvtLinguConfigDictionaryEntry > GetOldStyleDics( const char *pDicTy { aItem.getFileStatus(aFileStatus); OUString sPath = aFileStatus.getFileURL(); - if (sPath.lastIndexOf(aSystemSuffix) == sPath.getLength()-aSystemSuffix.getLength()) + if (sPath.endsWith(aSystemSuffix)) { sal_Int32 nStartIndex = sPath.lastIndexOf(sal_Unicode('/')) + 1; if (!sPath.match(aSystemPrefix, nStartIndex)) |