From 7e4d419094830d85f1079158d55f67bc3854f7ae Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Sat, 19 Mar 2016 13:29:11 +0100 Subject: [PATCH] svg exporter fix --- .../exporters/commonshape/SVGExporter.java | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/commonshape/SVGExporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/commonshape/SVGExporter.java index d2fc20cb4..78db9113c 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/commonshape/SVGExporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/commonshape/SVGExporter.java @@ -80,8 +80,6 @@ public class SVGExporter { private final HashSet fontFaces = new HashSet<>(); - private String clip; - public boolean useTextTag = Configuration.textExportExportFontFace.get(); public SVGExporter(ExportRectangle bounds) { @@ -150,7 +148,10 @@ public class SVGExporter { public final Element createSubGroup(Matrix transform, String id) { Element group = createSubGroup(id, "g"); - group.setAttribute("transform", transform.getSvgTransformationString(SWF.unitDivisor, 1)); + if (transform != null) { + group.setAttribute("transform", transform.getSvgTransformationString(SWF.unitDivisor, 1)); + } + return group; } @@ -218,9 +219,6 @@ public class SVGExporter { image.setAttribute("id", instanceName); } image.setAttribute("xlink:href", "#" + href); - if (clip != null) { - image.setAttribute("clip-path", "url(#" + clip + ")"); - } _svgGs.peek().appendChild(image); return image; } @@ -257,14 +255,6 @@ public class SVGExporter { return prefix + lastId; } - public void setClip(String clip) { - this.clip = clip; - } - - public String getClip() { - return clip; - } - protected static double roundPixels20(double pixels) { return Math.round(pixels * 100) / 100.0; }