summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/filter/graphicfilter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/filter/graphicfilter.cxx b/vcl/source/filter/graphicfilter.cxx
index e51b027be701..2cbe95e50194 100644
--- a/vcl/source/filter/graphicfilter.cxx
+++ b/vcl/source/filter/graphicfilter.cxx
@@ -912,7 +912,7 @@ Graphic GraphicFilter::ImportUnloadedGraphic(SvStream& rIStream, sal_uInt64 size
{
bool bAnimated = false;
Size aLogicSize;
- if (eLinkType == GfxLinkType::NativeGif)
+ if (eLinkType == GfxLinkType::NativeGif && !aGraphicContent.isEmpty())
{
std::shared_ptr<SvStream> pMemoryStream = aGraphicContent.getAsStream();
bAnimated = IsGIFAnimated(*pMemoryStream, aLogicSize);