From 529df356760160896c72faa7b97cbd83fc9e64e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 23 Mar 2026 22:15:27 +0100 Subject: [PATCH] chore: fix xaml clipping when not on shape base --- .../com/jpexs/decompiler/flash/exporters/XamlExporter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/XamlExporter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/XamlExporter.java index 709cebc6e..5dd3f75bf 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/XamlExporter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/exporters/XamlExporter.java @@ -1039,8 +1039,8 @@ public class XamlExporter { if (depthState.clipDepth > -1) { writer.writeStartElement("Canvas"); - writer.writeStartElement("Canvas.Clip"); if (character instanceof ShapeTag) { + writer.writeStartElement("Canvas.Clip"); ShapeTag shape = (ShapeTag) character; Matrix matrix = depthState.matrix == null ? new Matrix() : new Matrix(depthState.matrix); matrix = matrix.preConcatenate(zoomMatrix); @@ -1048,8 +1048,10 @@ public class XamlExporter { exporter.export(); String shapeGeometry = exporter.getResultAsString(); writer.writeCharactersRaw(shapeGeometry); + writer.writeEndElement(); //Canvas.Clip + } else { + //TODO: Create shape from sprites, etc. } - writer.writeEndElement(); //Canvas.Clip clipDepths.push(depthState.clipDepth); continue; }