Kaydet (Commit) d4617ef9 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1078541 Division or modulo by zero

Change-Id: Iea43399c70e56ff4e32953a5ddc5751abed39ff7
üst 2083b535
...@@ -1962,7 +1962,7 @@ void METWriter::WriteOrders( const GDIMetaFile* pMTF ) ...@@ -1962,7 +1962,7 @@ void METWriter::WriteOrders( const GDIMetaFile* pMTF )
for ( i = 0; i < aStr.getLength(); i++ ) for ( i = 0; i < aStr.getLength(); i++ )
{ {
aPt2 = aPt; aPt2 = aPt;
if ( i > 0 ) if (i > 0 && nNormSize)
{ {
aPt2.X() += pDXAry[i-1]*((long)pA->GetWidth())/ nNormSize; aPt2.X() += pDXAry[i-1]*((long)pA->GetWidth())/ nNormSize;
if ( nOrientation ) if ( nOrientation )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment