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);