diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-08-15 14:19:53 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-08-16 12:58:16 +0200 |
commit | c876f11689859243ba0945ba5c610ffd3ce3c6d3 (patch) | |
tree | 151a7ce9995bbba2171da9c16f20f061b3776aaa /vcl | |
parent | ab8b8fdbb32ad4da5af521b1b982189786bcdcb4 (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>
(cherry picked from commit 43b7aa5133ce3bfb44c5203aea37fa4474bc3a61)
Reviewed-on: https://gerrit.libreoffice.org/59144
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/image/Image.cxx | 5 |
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()); } |