From 32fb583fcbaef864dd2360fb4c84ca5a9ed21686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 28 Oct 2024 10:30:53 +0100 Subject: [PATCH] Free transform dragging outline fix --- src/com/jpexs/decompiler/flash/gui/ImagePanel.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/gui/ImagePanel.java b/src/com/jpexs/decompiler/flash/gui/ImagePanel.java index e418020ae..e7f97bee4 100644 --- a/src/com/jpexs/decompiler/flash/gui/ImagePanel.java +++ b/src/com/jpexs/decompiler/flash/gui/ImagePanel.java @@ -675,13 +675,13 @@ public final class ImagePanel extends JPanel implements MediaDisplay { return; } - /*if (selectedDepths.size() == 1) { + if (selectedDepths.size() == 1) { ds = timeline.getFrame(frame).layers.get(selectedDepths.get(0)); - }*/ + } _viewRect = getViewRect(); - /*if (ds != null) { + /*if (ds != null && !selectionMode) { CharacterTag cht = ds.getCharacter(); if (cht != null) { if (cht instanceof DrawableTag) { @@ -3265,7 +3265,7 @@ public final class ImagePanel extends JPanel implements MediaDisplay { if (temporaryMatrix != null) { Matrix tMatrix = temporaryMatrix; - tMatrix = tMatrix.concatenate(new Matrix(ds.temporaryMatrix)); + tMatrix = tMatrix.concatenate(new Matrix(ds.matrix)); Shape tempOutline = dt.getOutline(true, dframe, time, ds.ratio, renderContext, tMatrix, true, viewRect, zoom); gg.setStroke(new BasicStroke(1)); gg.setPaint(Color.black);