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;