summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-01-05 20:37:20 +0000
committerMichael Stahl <michael.stahl@cib.de>2020-01-08 15:42:38 +0100
commit6bc3f02ed2378dd70f03df64f53e852e3c9dbfdd (patch)
tree8e91bfdb142008e9e26df94e0c7f38fe62790802
parent4d9305d0645bd73916d21894ad86ee5260a8d240 (diff)
ofz#19803 check for negative values
Change-Id: I30036a16cf1651a7e27c7aefa086b3725d58933a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86250 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 0ab8ae4d98122f7de50365a062675d001ef0ca6a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86341 Reviewed-by: Michael Stahl <michael.stahl@cib.de>
-rw-r--r--filter/source/graphicfilter/icgm/class7.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/graphicfilter/icgm/class7.cxx b/filter/source/graphicfilter/icgm/class7.cxx
index 8c2478a308ae..b1652cc84ae0 100644
--- a/filter/source/graphicfilter/icgm/class7.cxx
+++ b/filter/source/graphicfilter/icgm/class7.cxx
@@ -80,7 +80,7 @@ void CGM::ImplDoClass7()
mpChart->mDataNode[ 0 ] = *reinterpret_cast<DataNode*>( pAppData );
sal_Int8 nZoneEnum = mpChart->mDataNode[ 0 ].nZoneEnum;
- if ( nZoneEnum && ( nZoneEnum <= 6 ) )
+ if (nZoneEnum > 0 && nZoneEnum <= 6)
mpChart->mDataNode[ nZoneEnum ] = *reinterpret_cast<DataNode*>( pAppData );
}
break;