[Libreoffice-commits] core.git: filter/source
Caolán McNamara
caolanm at redhat.com
Wed Feb 14 20:21:36 UTC 2018
filter/source/graphicfilter/itga/itga.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit c11c1afe58e0b4a25aaf1fdcf7b865f1c85fa727
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Feb 14 14:55:42 2018 +0000
ofz#6328 Abrt
Change-Id: I3bb4faa5b1b9361b4f29f55117d4317d5b1a66ec
Reviewed-on: https://gerrit.libreoffice.org/49737
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/filter/source/graphicfilter/itga/itga.cxx b/filter/source/graphicfilter/itga/itga.cxx
index f5c8a43b6993..211537f34e67 100644
--- a/filter/source/graphicfilter/itga/itga.cxx
+++ b/filter/source/graphicfilter/itga/itga.cxx
@@ -137,7 +137,9 @@ bool TGAReader::ReadTGA(Graphic & rGraphic)
if ( !m_rTGA.GetError() )
{
mbStatus = ImplReadHeader();
- if ( mbStatus )
+ if (mbStatus)
+ mbStatus = mpFileHeader->nImageWidth && mpFileHeader->nImageHeight;
+ if (mbStatus)
{
sal_Size nSize = mpFileHeader->nImageWidth;
nSize *= mpFileHeader->nImageHeight;
More information about the Libreoffice-commits
mailing list