Kaydet (Commit) 073dd4c7 authored tarafından Fridrich Štrba's avatar Fridrich Štrba

Avoid division by zero with paths that are vertical or horizontal lines

üst b036162d
...@@ -2199,8 +2199,8 @@ SdXMLImExSvgDElement::SdXMLImExSvgDElement(const OUString& rNew, ...@@ -2199,8 +2199,8 @@ SdXMLImExSvgDElement::SdXMLImExSvgDElement(const OUString& rNew,
-mrViewBox.GetY()); -mrViewBox.GetY());
if( bScale ) if( bScale )
aTransform.scale( aTransform.scale(
rObjectSize.Width / mrViewBox.GetWidth(), (mrViewBox.GetWidth() ? rObjectSize.Width / mrViewBox.GetWidth() : 0),
rObjectSize.Height / mrViewBox.GetHeight()); (mrViewBox.GetHeight() ? rObjectSize.Height / mrViewBox.GetHeight() : 0));
aTransform.translate( rObjectPos.X, rObjectPos.Y ); aTransform.translate( rObjectPos.X, rObjectPos.Y );
aPoly.transform(aTransform); aPoly.transform(aTransform);
......
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