[Libreoffice-commits] .: comphelper/source

Thorsten Behrens thorsten at kemper.freedesktop.org
Fri Apr 29 10:03:10 PDT 2011


 comphelper/source/officeinstdir/officeinstallationdirectories.cxx |   18 +++++-----
 1 file changed, 9 insertions(+), 9 deletions(-)

New commits:
commit 142894b5d9f9bc692b3b5e2710ba74c51ec936f4
Author: Thorsten Behrens <tbehrens at novell.com>
Date:   Fri Apr 29 18:03:30 2011 +0200

    Applied normalize-template-paths-fix (slightly adapted)
    
    Fix for n#512146

diff --git a/comphelper/source/officeinstdir/officeinstallationdirectories.cxx b/comphelper/source/officeinstdir/officeinstallationdirectories.cxx
index 71bb061..35bcfec 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 ) );
                 }
             }
         }


More information about the Libreoffice-commits mailing list