diff options
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/rsc/rsc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rsc/source/rsc/rsc.cxx b/rsc/source/rsc/rsc.cxx index dc52bdb4f74a..1b94cf11fb91 100644 --- a/rsc/source/rsc/rsc.cxx +++ b/rsc/source/rsc/rsc.cxx @@ -786,7 +786,7 @@ bool RscCompiler::GetImageFilePath( const RscCmdLine::OutputFile& rOutputFile, { OString aSearch(aReplIter->second.toAsciiLowerCase()); OString aSearchIn(aRelPathStr.toAsciiLowerCase()); - if( aSearchIn.indexOf(aSearch) == 0 ) + if( aSearchIn.startsWith(aSearch) ) { sal_Int32 nCopyPos = aReplIter->second.getLength(), nLength = aRelPathStr.getLength(); const sal_Char* pChars = aRelPathStr.getStr(); |