From 9c3dc007c11d9ecb616b6f2ba8f0317ee7e27766 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 12 May 2025 20:12:00 +0200 Subject: [PATCH] Fixed: Filters - image bounds --- CHANGELOG.md | 1 + .../src/com/jpexs/decompiler/flash/timeline/Timeline.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0af276e00..02b98963e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,6 +73,7 @@ All notable changes to this project will be documented in this file. - Bevel and Glow filters incorrect rendering - Incorrect cursor handling when placed object has filters - FLA export - Rounding errors on COLORMATRIXFILTER contrast +- Filters - image bounds ### Removed - Option to preview flash items via ActiveX component is no longer available. 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 15fded567..c348d43c8 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 @@ -1086,8 +1086,8 @@ public class Timeline { for (FILTER filter : filters) { double x = filter.getDeltaX(); double y = filter.getDeltaY(); - deltaXMax = Math.max(x, deltaXMax); - deltaYMax = Math.max(y, deltaYMax); + deltaXMax += x; + deltaYMax += y; } rect.xMin -= deltaXMax * unzoom * SWF.unitDivisor; rect.xMax += deltaXMax * unzoom * SWF.unitDivisor;