summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2011-04-29 18:03:30 +0200
committerThorsten Behrens <tbehrens@novell.com>2011-04-29 19:03:43 +0200
commitb78698e14fe1afc4c210ae749d0a4e855826b113 (patch)
tree118324bd25fc39e10a2936601866c8bfd4c9e7c6 /comphelper
parent32341029e4ba8a83629ebd10a5dabd2645548eda (diff)
Applied normalize-template-paths-fix (slightly adapted)
Fix for n#512146
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/officeinstdir/officeinstallationdirectories.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/comphelper/source/officeinstdir/officeinstallationdirectories.cxx b/comphelper/source/officeinstdir/officeinstallationdirectories.cxx
index 71bb06181206..35bcfecc7f9d 100644
--- a/comphelper/source/officeinstdir/officeinstallationdirectories.cxx
+++ b/comphelper/source/officeinstdir/officeinstallationdirectories.cxx
@@ -162,9 +162,9 @@ OfficeInstallationDirectories::makeRelocatableURL( const rtl::OUString& URL )
if ( nIndex != -1 )
{
return rtl::OUString(
- URL.replaceAt( nIndex,
- m_pOfficeBrandDir->getLength(),
- m_aOfficeBrandDirMacro ) );
+ aCanonicalURL.replaceAt( nIndex,
+ m_pOfficeBrandDir->getLength(),
+ m_aOfficeBrandDirMacro ) );
}
else
{
@@ -172,9 +172,9 @@ OfficeInstallationDirectories::makeRelocatableURL( const rtl::OUString& URL )
if ( nIndex != -1 )
{
return rtl::OUString(
- URL.replaceAt( nIndex,
- m_pOfficeBaseDir->getLength(),
- m_aOfficeBaseDirMacro ) );
+ aCanonicalURL.replaceAt( nIndex,
+ m_pOfficeBaseDir->getLength(),
+ m_aOfficeBaseDirMacro ) );
}
else
{
@@ -182,9 +182,9 @@ OfficeInstallationDirectories::makeRelocatableURL( const rtl::OUString& URL )
if ( nIndex != -1 )
{
return rtl::OUString(
- URL.replaceAt( nIndex,
- m_pUserDir->getLength(),
- m_aUserDirMacro ) );
+ aCanonicalURL.replaceAt( nIndex,
+ m_pUserDir->getLength(),
+ m_aUserDirMacro ) );
}
}
}