diff --git a/CHANGELOG.md b/CHANGELOG.md index 9430e44b2..8bf18fe53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ All notable changes to this project will be documented in this file. - SVG import - duplicated image on bitmap fill style - Generic tag editor - morphshape fill - show bitmapId for repeating bitmap fill, gradient matrix for focal gradient - Morphshape SVG export - focalPoint animation +- Do not display lines with zero width ### Changed - Basic tag info panel always visible even when nothing to display (to avoid flickering) 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 00c365749..3800f19e9 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 @@ -162,7 +162,7 @@ public class SVGMorphShapeExporter extends DefaultSVGMorphShapeExporter { path.setAttribute("stroke", color.toHexRGB()); path.appendChild(createAnimateElement("stroke", color.toHexRGB(), colorEnd.toHexRGB())); } - path.setAttribute("stroke-width", Double.toString(thickness == 0 ? 1 : thickness)); + path.setAttribute("stroke-width", Double.toString(thickness)); path.appendChild(createAnimateElement("stroke-width", thickness, thicknessEnd)); if (color instanceof RGBA) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/BitmapExporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/BitmapExporter.java index 0f1cee78e..edb88f404 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/BitmapExporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/BitmapExporter.java @@ -407,6 +407,12 @@ public class BitmapExporter extends ShapeExporterBase { finalizePath(); linePaint = null; lineTransform = null; + + if (thickness == 0) { + lineColor = null; + return; + } + lineColor = color == null ? null : color.toColor(); int capStyle = BasicStroke.CAP_ROUND; switch (startCaps) { diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/SVGShapeExporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/SVGShapeExporter.java index 081002bb8..a47f38a60 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/SVGShapeExporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/SVGShapeExporter.java @@ -169,7 +169,7 @@ public class SVGShapeExporter extends DefaultSVGShapeExporter { if (color != null) { path.setAttribute("stroke", color.toHexRGB()); } - path.setAttribute("stroke-width", Double.toString(thickness == 0 ? 1 : thickness)); + path.setAttribute("stroke-width", Double.toString(thickness)); if (color instanceof RGBA) { RGBA colorA = (RGBA) color; if (colorA.alpha != 255) {