summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source')
-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;