coverity#1415611 Result is not floating-point

Change-Id: Icaeeb835e9a3c8ab6917fe15297ad884db792299
This commit is contained in:
Caolán McNamara
2017-07-23 21:39:38 +01:00
parent dbe73c8df8
commit bc2552fa31

View File

@@ -261,7 +261,9 @@ void AlgAtom::layoutShape( const ShapePtr& rShape,
for ( ; nCol<nCount; nCol++)
{
nRow = (nCount+nCol-1) / nCol;
if ((rShape->getSize().Height / nRow) / (rShape->getSize().Width / nCol) >= fAspectRatio)
const double fShapeHeight = rShape->getSize().Height;
const double fShapeWidth = rShape->getSize().Width;
if ((fShapeHeight / nRow) / (fShapeWidth / nCol) >= fAspectRatio)
break;
}
SAL_INFO("oox.drawingml", "Snake layout grid: " << nCol << "x" << nRow);