[Libreoffice-commits] core.git: Branch 'libreoffice-6-4' - filter/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jan 7 15:48:59 UTC 2020
filter/source/graphicfilter/icgm/class7.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a1c678bbb2d6b981b4c9ae346dba85d414c11c47
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Jan 5 20:37:20 2020 +0000
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Tue Jan 7 16:48:30 2020 +0100
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 at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
(cherry picked from commit 0ab8ae4d98122f7de50365a062675d001ef0ca6a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86340
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
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;
More information about the Libreoffice-commits
mailing list