summaryrefslogtreecommitdiff
path: root/vcl/source/filter/graphicfilter.cxx
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2019-10-18 00:40:59 +0200
committerJan Holesovsky <kendy@collabora.com>2019-10-24 00:35:44 +0200
commit044709575e907ffc74f85c395219207b51370c05 (patch)
tree1d75ce853b04ed7368f6af2976507b0df955f296 /vcl/source/filter/graphicfilter.cxx
parent754e2d9be1dd5ab1f8b231063c69abf916c49c56 (diff)
pdfium: Switch the condition for better readibility.
Change-Id: I8acf1e98f032f6943b2e7d09ac276f0f1ac4b120 Reviewed-on: https://gerrit.libreoffice.org/81061 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Jan Holesovsky <kendy@collabora.com> (cherry picked from commit 105d98caa70389c12ad4f9a2a2b7474a4be73aa2) Reviewed-on: https://gerrit.libreoffice.org/81326 Tested-by: Jenkins
Diffstat (limited to 'vcl/source/filter/graphicfilter.cxx')
-rw-r--r--vcl/source/filter/graphicfilter.cxx8
1 files changed, 4 insertions, 4 deletions
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;