diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-23 10:32:01 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-23 11:13:24 +0100 |
commit | d4617ef9c371baaadd948ffe7285d197d2d97107 (patch) | |
tree | 4d88b22ecadac34e6e5b8f072ae37868a9218e84 | |
parent | 2083b5350055177fbb3fcef75b2be63cf26d6039 (diff) |
coverity#1078541 Division or modulo by zero
Change-Id: Iea43399c70e56ff4e32953a5ddc5751abed39ff7
-rw-r--r-- | filter/source/graphicfilter/eos2met/eos2met.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/graphicfilter/eos2met/eos2met.cxx b/filter/source/graphicfilter/eos2met/eos2met.cxx index e7285ec3a721..dd743c97e498 100644 --- a/filter/source/graphicfilter/eos2met/eos2met.cxx +++ b/filter/source/graphicfilter/eos2met/eos2met.cxx @@ -1962,7 +1962,7 @@ void METWriter::WriteOrders( const GDIMetaFile* pMTF ) for ( i = 0; i < aStr.getLength(); i++ ) { aPt2 = aPt; - if ( i > 0 ) + if (i > 0 && nNormSize) { aPt2.X() += pDXAry[i-1]*((long)pA->GetWidth())/ nNormSize; if ( nOrientation ) |