summaryrefslogtreecommitdiff
path: root/vcl/source/image
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-08-15 14:19:53 +0200
committerTomaž Vajngerl <quikee@gmail.com>2018-08-15 20:58:28 +0200
commit43b7aa5133ce3bfb44c5203aea37fa4474bc3a61 (patch)
treea53d699f50426628bd6092466dec4ca7c7568082 /vcl/source/image
parent950e84e4ca1896923b96eacc5e5aa461a0936e86 (diff)
tdf#119276 Fix loading of images with internal LO URLs
Change-Id: I30556aba4490bef7f4a6e6b3899cc05f4b6a06d4 Reviewed-on: https://gerrit.libreoffice.org/59104 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/source/image')
-rw-r--r--vcl/source/image/Image.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/image/Image.cxx b/vcl/source/image/Image.cxx
index 7be04691603d..049e3bef5d0d 100644
--- a/vcl/source/image/Image.cxx
+++ b/vcl/source/image/Image.cxx
@@ -67,10 +67,9 @@ Image::Image(const OUString & rFileUrl)
}
else
{
- OUString aPath;
- osl::FileBase::getSystemPathFromFileURL(rFileUrl, aPath);
Graphic aGraphic;
- if (ERRCODE_NONE == GraphicFilter::LoadGraphic(aPath, IMP_PNG, aGraphic))
+
+ if (ERRCODE_NONE == GraphicFilter::LoadGraphic(rFileUrl, IMP_PNG, aGraphic))
{
ImplInit(aGraphic.GetBitmapEx());
}