summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/xexptran.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/draw/xexptran.cxx b/xmloff/source/draw/xexptran.cxx
index a36e8e703f82..4d4a81668b70 100644
--- a/xmloff/source/draw/xexptran.cxx
+++ b/xmloff/source/draw/xexptran.cxx
@@ -2199,8 +2199,8 @@ SdXMLImExSvgDElement::SdXMLImExSvgDElement(const OUString& rNew,
-mrViewBox.GetY());
if( bScale )
aTransform.scale(
- rObjectSize.Width / mrViewBox.GetWidth(),
- rObjectSize.Height / mrViewBox.GetHeight());
+ (mrViewBox.GetWidth() ? rObjectSize.Width / mrViewBox.GetWidth() : 0),
+ (mrViewBox.GetHeight() ? rObjectSize.Height / mrViewBox.GetHeight() : 0));
aTransform.translate( rObjectPos.X, rObjectPos.Y );
aPoly.transform(aTransform);