diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/morphshape/CanvasMorphShapeExporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/morphshape/CanvasMorphShapeExporter.java index 5e44b3ac7..d35b54576 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/morphshape/CanvasMorphShapeExporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/morphshape/CanvasMorphShapeExporter.java @@ -431,8 +431,9 @@ public class CanvasMorphShapeExporter extends MorphShapeExporterBase { protected void finalizePath() { if (!"".equals(pathData)) { - String drawStroke = "\tdrawMorphPath(ctx,\"" + pathData.trim() + "\",ratio,true,scaleMode);\r\n"; - String drawFill = "\tdrawMorphPath(ctx,\"" + pathData.trim() + "\",ratio,false);\r\n";; + shapeData+="\tvar pathData=\""+pathData.trim()+"\";\r\n"; + String drawStroke = "\tdrawMorphPath(ctx,pathData,ratio,true,scaleMode);\r\n"; + String drawFill = "\tdrawMorphPath(ctx,pathData,ratio,false);\r\n";; pathData = ""; if (lineFillData != null) { String preLineFillData = ""; diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/CanvasShapeExporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/CanvasShapeExporter.java index ef479836e..669f26a7e 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/CanvasShapeExporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/shape/CanvasShapeExporter.java @@ -420,8 +420,9 @@ public class CanvasShapeExporter extends ShapeExporterBase { protected void finalizePath() { if (!"".equals(pathData)) { - String drawStroke = "\tdrawPath(ctx,\"" + pathData.trim() + "\",true,scaleMode);\r\n"; - String drawFill = "\tdrawPath(ctx,\"" + pathData.trim() + "\",false);\r\n";; + shapeData+="\tvar pathData=\""+pathData.trim()+"\";\r\n"; + String drawStroke = "\tdrawPath(ctx,pathData,true,scaleMode);\r\n"; + String drawFill = "\tdrawPath(ctx,pathData,false);\r\n";; pathData = ""; if (lineFillData != null) { String preLineFillData = "";