Kaydet (Commit) 3dfcc485 authored tarafından Caolán McNamara's avatar Caolán McNamara

crashtesting: div-by-zero on load of tdf48948-2.pptx

Change-Id: Id05f65543eeb06526535ce9eaee354b4789e2069
Reviewed-on: https://gerrit.libreoffice.org/72883
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 51c639d1
...@@ -684,6 +684,8 @@ void AlgAtom::layoutShape( const ShapePtr& rShape, ...@@ -684,6 +684,8 @@ void AlgAtom::layoutShape( const ShapePtr& rShape,
} }
const sal_Int32 nShapes = aCycleChildren.size(); const sal_Int32 nShapes = aCycleChildren.size();
if (nShapes)
{
const sal_Int32 nConnectorRadius = nRadius * cos(basegfx::deg2rad(nSpanAngle / nShapes)); const sal_Int32 nConnectorRadius = nRadius * cos(basegfx::deg2rad(nSpanAngle / nShapes));
const sal_Int32 nConnectorAngle = nSpanAngle > 0 ? 0 : 180; const sal_Int32 nConnectorAngle = nSpanAngle > 0 ? 0 : 180;
...@@ -716,6 +718,7 @@ void AlgAtom::layoutShape( const ShapePtr& rShape, ...@@ -716,6 +718,7 @@ void AlgAtom::layoutShape( const ShapePtr& rShape,
idx++; idx++;
} }
}
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment