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)
    {