diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-05 20:37:20 +0000 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-01-25 12:24:08 +0100 |
commit | 05c4faa8f5d6b7d42d2e79a823cd7eb25bb182d1 (patch) | |
tree | 568c6ed2299ea785fdbff14fc5e6a929ecdbbacf /filter/source | |
parent | d8809a0ecbdae911cc6d9329c09842ee9f9658ef (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/+/86340
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit a1c678bbb2d6b981b4c9ae346dba85d414c11c47)
Diffstat (limited to 'filter/source')
-rw-r--r-- | filter/source/graphicfilter/icgm/class7.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/graphicfilter/icgm/class7.cxx b/filter/source/graphicfilter/icgm/class7.cxx index f5341da51dc9..78af9f5f98fb 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; |