coverity#1157791 Division or modulo by zero
Change-Id: I6b46a037b0d5f13681ad4936ddd56fd80c8128fb
This commit is contained in:
@@ -4488,7 +4488,9 @@ SdrObject* SvxMSDffManager::ImportShape( const DffRecordHeader& rHd, SvStream& r
|
||||
fYOfs = ((double)aPolyBoundRect.Top() - (double)aPolyPieRect.Top() ) * fYScale;
|
||||
}
|
||||
|
||||
if ( aPolyPieRect.GetWidth() )
|
||||
fXScale = (double)aPolyBoundRect.GetWidth() / (double)aPolyPieRect.GetWidth();
|
||||
if ( aPolyPieRect.GetHeight() )
|
||||
fYScale = (double)aPolyBoundRect.GetHeight() / (double)aPolyPieRect.GetHeight();
|
||||
|
||||
Rectangle aOldBoundRect( aObjData.aBoundRect );
|
||||
|
Reference in New Issue
Block a user