summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-10-22 16:37:24 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-10-22 20:31:30 +0200
commitc2f2317494adbf2055d43ad585c44eb8408f4ebd (patch)
tree19aaf48a1a3f8e37dcef234b2256fb2e16b8efa4 /vcl/source
parent7b04e44d4e909e4a6e48a894ec5ad00cacbbcbf5 (diff)
ofz#52600 stop after first failed image in a multi-image tiff
Change-Id: Ibd0a8fd5720fef0801e00a6dd4d52c018471e24d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141667 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/filter/itiff/itiff.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/filter/itiff/itiff.cxx b/vcl/source/filter/itiff/itiff.cxx
index 2dda51469ce7..510261e21b91 100644
--- a/vcl/source/filter/itiff/itiff.cxx
+++ b/vcl/source/filter/itiff/itiff.cxx
@@ -291,6 +291,8 @@ bool ImportTiffGraphicImport(SvStream& rTIFF, Graphic& rGraphic)
ANIMATION_TIMEOUT_ON_CLICK, Disposal::Back);
aAnimation.Insert(aAnimationFrame);
}
+ else
+ break;
} while (TIFFReadDirectory(tif));
TIFFClose(tif);