diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-23 21:39:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-23 22:04:49 +0100 |
commit | bc2552fa3197617ec909e90996076ea45a27ce5c (patch) | |
tree | 73482a87f5769c11e1256a0286ab30569da4abfd /oox | |
parent | dbe73c8df874d0970e3d05159c796dfe67b81e8e (diff) |
coverity#1415611 Result is not floating-point
Change-Id: Icaeeb835e9a3c8ab6917fe15297ad884db792299
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/diagram/diagramlayoutatoms.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx index 80f99673243b..d1c172862541 100644 --- a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx +++ b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx @@ -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); |