summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2017-11-21 22:43:10 +0100
committerSzymon Kłos <szymon.klos@collabora.com>2017-11-22 10:09:25 +0100
commitfd51f01dbca1ddebe846ec9f56cbb13002f295c6 (patch)
treed9d7eb8fdb3db5b611708b873bfbe4425835559a
parent5640ef110094f33cf678f4e3ef4f3fd4334a00c8 (diff)
tdf#86087 fix relative link open on linux
Change-Id: I6bf2d6bd50b9f1ed7a2c3f66fc18598aa7ffe3d6 Reviewed-on: https://gerrit.libreoffice.org/45053 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Tested-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r--sw/source/uibase/wrtsh/wrtsh2.cxx2
1 files changed, 1 insertions, 1 deletions
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.