diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-25 11:02:07 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-25 11:46:53 +0100 |
commit | 8547599e0e27dd38bdbd76201d2359c59c3650f2 (patch) | |
tree | e266eeb612be502b1cd5cbd875c450d875ac29b9 /svx | |
parent | 32162d327bc4356bc69ee4c8e82f0dbc3c8e3076 (diff) |
coverity#1209371 Division or modulo by float zero
Change-Id: I8834b81b71746daaf97f7b62d09421d5165fa707
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShapeFontWork.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx index 72545295f665..1371caaedbf5 100644 --- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx @@ -392,7 +392,7 @@ void GetTextAreaOutline( const FWData& rFWData, const SdrObject* pCustomShape, F while( aOutlineIter != aOutlineIEnd ) { Rectangle aPolyPolyBoundRect( aOutlineIter->GetBoundRect() ); - if ( aPolyPolyBoundRect.GetHeight() != rParagraphBoundRect.GetHeight() ) + if (aPolyPolyBoundRect.GetHeight() != rParagraphBoundRect.GetHeight() && aPolyPolyBoundRect.GetHeight()) aOutlineIter->Scale( 1.0, (double)rParagraphBoundRect.GetHeight() / aPolyPolyBoundRect.GetHeight() ); aPolyPolyBoundRect = aOutlineIter->GetBoundRect(); sal_Int32 nMove = aPolyPolyBoundRect.Top() - rParagraphBoundRect.Top(); |