summaryrefslogtreecommitdiff
path: root/svx/source/customshapes
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-07-04 19:38:21 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-07-04 20:11:46 +0200
commit982c6ab3346f55a877a58f7bb73e74daa27e9820 (patch)
tree2721533f52918de9c3a42236d2c004c7f238070b /svx/source/customshapes
parentff6aac4167dc72c6546ebfa43f9ede81247c1741 (diff)
coverity#704499-501 Division by zero
Change-Id: I5f082f10cb6822707a279d5b38ef2936ad2e5c41
Diffstat (limited to 'svx/source/customshapes')
-rw-r--r--svx/source/customshapes/EnhancedCustomShape3d.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShape3d.cxx b/svx/source/customshapes/EnhancedCustomShape3d.cxx
index 62249f85de78..4d4dbcb9b62b 100644
--- a/svx/source/customshapes/EnhancedCustomShape3d.cxx
+++ b/svx/source/customshapes/EnhancedCustomShape3d.cxx
@@ -524,7 +524,7 @@ SdrObject* EnhancedCustomShape3d::Create3DObject( const SdrObject* pShape2d, con
}
else
{
- if ( aSnapRect != aBoundRect )
+ if ( aSnapRect != aBoundRect && aSnapRect.GetWidth() > 0 && aSnapRect.GetHeight() > 0)
{
const XFillBitmapItem& rBmpItm = (XFillBitmapItem&)p3DObj->GetMergedItem(XATTR_FILLBITMAP);
aFillBmp = rBmpItm.GetGraphicObject().GetGraphic().GetBitmapEx();