[Libreoffice-commits] core.git: vcl/source
Jan Holesovsky (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 23 22:37:02 UTC 2019
vcl/source/filter/graphicfilter.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 044709575e907ffc74f85c395219207b51370c05
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Oct 18 00:40:59 2019 +0200
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Thu Oct 24 00:35:44 2019 +0200
pdfium: Switch the condition for better readibility.
Change-Id: I8acf1e98f032f6943b2e7d09ac276f0f1ac4b120
Reviewed-on: https://gerrit.libreoffice.org/81061
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
(cherry picked from commit 105d98caa70389c12ad4f9a2a2b7474a4be73aa2)
Reviewed-on: https://gerrit.libreoffice.org/81326
Tested-by: Jenkins
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index 4aeee289f689..468ff983c4f2 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -1752,12 +1752,12 @@ ErrCode GraphicFilter::ImportGraphic( Graphic& rGraphic, const OUString& rPath,
nStatus = ERRCODE_GRFILTER_FILTERERROR;
}
}
- else if (aFilterName == IMP_PDF)
+ else if (aFilterName.equalsIgnoreAsciiCase(IMP_PDF))
{
- if (!vcl::ImportPDF(rIStream, rGraphic))
- nStatus = ERRCODE_GRFILTER_FILTERERROR;
- else
+ if (vcl::ImportPDF(rIStream, rGraphic))
eLinkType = GfxLinkType::NativePdf;
+ else
+ nStatus = ERRCODE_GRFILTER_FILTERERROR;
}
else
nStatus = ERRCODE_GRFILTER_FILTERERROR;
More information about the Libreoffice-commits
mailing list