[Libreoffice-commits] core.git: Branch 'libreoffice-6-3' - filter/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Jan 8 14:43:19 UTC 2020


 filter/source/graphicfilter/icgm/class7.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6bc3f02ed2378dd70f03df64f53e852e3c9dbfdd
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Jan 5 20:37:20 2020 +0000
Commit:     Michael Stahl <michael.stahl at cib.de>
CommitDate: Wed Jan 8 15:42:38 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/+/86341
    Reviewed-by: Michael Stahl <michael.stahl at cib.de>

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