From b220e473d2807712cd707a4fd7d0c6a7f2ce26dc Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Tue, 31 Mar 2015 07:53:25 +0200 Subject: [PATCH] Morphshape export fix --- .../flash/exporters/morphshape/SVGMorphShapeExporter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/morphshape/SVGMorphShapeExporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/morphshape/SVGMorphShapeExporter.java index 76ec7a541..d3713b17e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/morphshape/SVGMorphShapeExporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/morphshape/SVGMorphShapeExporter.java @@ -171,8 +171,10 @@ public class SVGMorphShapeExporter extends DefaultSVGMorphShapeExporter { thickness *= zoom / SWF.unitDivisor; thicknessEnd *= zoom / SWF.unitDivisor; path.setAttribute("fill", "none"); - path.setAttribute("stroke", color.toHexRGB()); - path.appendChild(createAnimateElement("stroke", color.toHexRGB(), colorEnd.toHexRGB())); + if (color != null) { + path.setAttribute("stroke", color.toHexRGB()); + path.appendChild(createAnimateElement("stroke", color.toHexRGB(), colorEnd.toHexRGB())); + } path.setAttribute("stroke-width", Double.toString(thickness == 0 ? 1 : thickness)); path.appendChild(createAnimateElement("stroke-width", thickness, thicknessEnd));