Applied normalize-template-paths-fix (slightly adapted)

Fix for n#512146
This commit is contained in:
Thorsten Behrens 2011-04-29 18:03:30 +02:00
parent 32341029e4
commit b78698e14f

View file

@ -162,7 +162,7 @@ OfficeInstallationDirectories::makeRelocatableURL( const rtl::OUString& URL )
if ( nIndex != -1 )
{
return rtl::OUString(
URL.replaceAt( nIndex,
aCanonicalURL.replaceAt( nIndex,
m_pOfficeBrandDir->getLength(),
m_aOfficeBrandDirMacro ) );
}
@ -172,7 +172,7 @@ OfficeInstallationDirectories::makeRelocatableURL( const rtl::OUString& URL )
if ( nIndex != -1 )
{
return rtl::OUString(
URL.replaceAt( nIndex,
aCanonicalURL.replaceAt( nIndex,
m_pOfficeBaseDir->getLength(),
m_aOfficeBaseDirMacro ) );
}
@ -182,7 +182,7 @@ OfficeInstallationDirectories::makeRelocatableURL( const rtl::OUString& URL )
if ( nIndex != -1 )
{
return rtl::OUString(
URL.replaceAt( nIndex,
aCanonicalURL.replaceAt( nIndex,
m_pUserDir->getLength(),
m_aUserDirMacro ) );
}