| commit | a7be44be49ddc0a501f31f13e545a921a3dcc5c4 | [log] |
|---|---|---|
| author | Heiko Tietze <tietze.heiko@gmail.com> | Mon May 17 16:05:11 2021 +0200 |
| committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | Tue May 18 08:55:30 2021 +0200 |
| tree | 350c0da7b2926c994ce6918a6063e989b7c7cedf | |
| parent | b0228e4d39656c487300a607117a9e1c6c14620b [diff] |
Resolves tdf#142041 - Hyperlink to file location Follow-up fix to 334838efc12cd1e4a451a8dd7542b93fdaf30bb9 Change-Id: Ic63edcc88401d3db8f3a7737f562deb328485fab Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115710 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index 19b4529e..40bd42c 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx
@@ -35,6 +35,7 @@ #include <svtools/imagemgr.hxx> #include <sal/log.hxx> #include <osl/diagnose.h> #include <osl/file.hxx> #include <memory> @@ -975,7 +976,9 @@ void SfxDocumentPage::Reset( const SfxItemSet* rSet ) aPath.removeFinalSlash(); OUString aText( aPath.PathToFileName() ); //! (pb) MaxLen? m_xFileValEd->set_label(aText); m_xFileValEd->set_uri("file://" + aText); OUString aURLStr; osl::FileBase::getFileURLFromSystemPath(aText, aURLStr); m_xFileValEd->set_uri(aURLStr); } else if (aURL.GetProtocol() != INetProtocol::PrivSoffice) {