Kaydet (Commit) efe3e06d authored tarafından Andras Timar's avatar Andras Timar

fdo#87292 use system dependent path instead of file URL

Change-Id: I3da4cd7af16a8ecfb19ce23e01117e735e9dd8d6
üst e09a8259
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <osl/file.hxx>
#include <svx/linkwarn.hxx> #include <svx/linkwarn.hxx>
#include <svtools/miscopt.hxx> #include <svtools/miscopt.hxx>
...@@ -27,7 +28,10 @@ SvxLinkWarningDialog::SvxLinkWarningDialog( vcl::Window* pParent, const OUString ...@@ -27,7 +28,10 @@ SvxLinkWarningDialog::SvxLinkWarningDialog( vcl::Window* pParent, const OUString
// replace filename // replace filename
OUString sInfoText = get_primary_text(); OUString sInfoText = get_primary_text();
sInfoText = sInfoText.replaceAll("%FILENAME", _rFileName); OUString aPath;
if ( osl::FileBase::E_None != osl::FileBase::getSystemPathFromFileURL( _rFileName, aPath ) )
aPath = _rFileName;
sInfoText = sInfoText.replaceAll("%FILENAME", aPath);
set_primary_text( sInfoText ); set_primary_text( sInfoText );
// load state of "warning on" checkbox from misc options // load state of "warning on" checkbox from misc options
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment