sw/source/uibase/wrtsh/wrtsh2.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit fd51f01dbca1ddebe846ec9f56cbb13002f295c6
Author: Szymon Kłos <szymon.k...@collabora.com>
Date:   Tue Nov 21 22:43:10 2017 +0100

    tdf#86087 fix relative link open on linux
    
    Change-Id: I6bf2d6bd50b9f1ed7a2c3f66fc18598aa7ffe3d6
    Reviewed-on: https://gerrit.libreoffice.org/45053
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    Tested-by: Szymon Kłos <szymon.k...@collabora.com>

diff --git a/sw/source/uibase/wrtsh/wrtsh2.cxx 
b/sw/source/uibase/wrtsh/wrtsh2.cxx
index c40d80c3087d..f85206f4c656 100644
--- a/sw/source/uibase/wrtsh/wrtsh2.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh2.cxx
@@ -528,7 +528,7 @@ void LoadURL( SwViewShell& rVSh, const OUString& rURL, 
LoadUrlFlags nFilter,
         bCorrectURL &= aURL.insertName( sFileURL );
 
         if( bCorrectURL )
-            sFileURL = aURL.getFSysPath( FSysStyle::Detect );
+            sFileURL = aURL.GetMainURL( 
INetURLObject::DecodeMechanism::Unambiguous );
     }
 
     // We are doing tiledRendering, let the client handles the URL loading.
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to