From 27a192570b46c875a9abe6f03fc01e7fa819d84b Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Sat, 1 Apr 2017 21:13:17 +0200 Subject: [PATCH] SVG import bound fix 2 --- .../com/jpexs/decompiler/flash/importers/svg/SvgImporter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/svg/SvgImporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/svg/SvgImporter.java index 74006cb9f..714d5213b 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/svg/SvgImporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/importers/svg/SvgImporter.java @@ -183,7 +183,7 @@ public class SvgImporter { double ratioX = rect.getWidth() / width / SWF.unitDivisor; double ratioY = rect.getHeight() / height / SWF.unitDivisor; transform = Matrix.getScaleInstance(ratioX, ratioY); - transform.translate(origXmin / SWF.unitDivisor, origYmin / SWF.unitDivisor); + transform.translate(origXmin / SWF.unitDivisor / ratioX, origYmin / SWF.unitDivisor / ratioY); } processSvgObject(idMap, shapeNum, shapes, rootElement, transform, style);