From 5ab44babaed5d947910a3c274f958e5b9694f1b9 Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Sun, 27 Dec 2015 21:00:17 +0100 Subject: [PATCH] svg testing: shape size fix --- .../com/jpexs/decompiler/flash/importers/svg/SvgImporter.java | 2 ++ 1 file changed, 2 insertions(+) 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 ec5e7a881..90e0273ff 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 @@ -1008,6 +1008,8 @@ public class SvgImporter { eat.names.add(name); swf.addTag(eat); swf.assignExportNamesToSymbols(); + st.shapeBounds.Xmax = (int) (si.getWidth() * SWF.unitDivisor); + st.shapeBounds.Ymax = (int) (si.getHeight() * SWF.unitDivisor); new ShapeExporter().exportShapes(null, "./outex/", new ReadOnlyTagList(li), new ShapeExportSettings(ShapeExportMode.SVG, 1), null); }