From ca54060785d16cf8b5b78b86814873a95253fc3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sat, 17 May 2025 19:28:51 +0200 Subject: [PATCH] Fixed: Touch point incorrect position when editing nested layers --- CHANGELOG.md | 2 +- src/com/jpexs/decompiler/flash/gui/ImagePanel.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b52137631..085474ab9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ All notable changes to this project will be documented in this file. ### Fixed - [#2456] FLA export - NullPointer exception while exporting to CS4 or lower via commandline -- Snap align and snap to objects incorrect position when editing nested layers +- Touch point, snap align and snap to objects incorrect position when editing nested layers ### Fixed - Resize export dialogs labels to match localized strings diff --git a/src/com/jpexs/decompiler/flash/gui/ImagePanel.java b/src/com/jpexs/decompiler/flash/gui/ImagePanel.java index c33dad0c6..d9de483b2 100644 --- a/src/com/jpexs/decompiler/flash/gui/ImagePanel.java +++ b/src/com/jpexs/decompiler/flash/gui/ImagePanel.java @@ -1655,6 +1655,7 @@ public final class ImagePanel extends JPanel implements MediaDisplay { if (depthStateUnderCursor.matrix != null) { matrix = matrix.preConcatenate(new Matrix(depthStateUnderCursor.matrix)); } + matrix = matrix.concatenate(getParentMatrix()); Matrix scaleMatrix = Matrix.getScaleInstance(getRealZoom() / SWF.unitDivisor); matrix = matrix.preConcatenate(scaleMatrix);