diff --git a/CHANGELOG.md b/CHANGELOG.md index aadcacc3b..8cb67c3e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file. - [#1771] DefineShape4 line filled using single color - Minimum stroke width should be 1 px - [#1828] Closing path in shape strokes from last moveTo only +- Shape not clipped when clip area ouside of view ### Changed - AS3 integer values are internally (e.g. in the lib) handled as java int type instead of long. diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/timeline/Timeline.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/timeline/Timeline.java index 90638430a..6573f0071 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/timeline/Timeline.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/timeline/Timeline.java @@ -660,10 +660,12 @@ public class Timeline { fg.drawRect((int) (viewRectZoom.xMin / SWF.unitDivisor + 5), (int) (viewRectZoom.yMin / SWF.unitDivisor + 5), (int) (viewRectZoom.getWidth() / SWF.unitDivisor - 5), (int) (viewRectZoom.getHeight() / SWF.unitDivisor - 5)); */ if (!viewRectZoom.intersects(fullRect)) { - //System.err.println("hidden " + layer.characterId); + if (clipDepth > -1) { + Clip clip = new Clip(new Area(), clipDepth); + clips.add(clip); + } return; } - strokeTransform = strokeTransform.concatenate(layerMatrix); boolean cacheAsBitmap = layer.cacheAsBitmap() && layer.placeObjectTag != null && drawable.isSingleFrame();