diff --git a/CHANGELOG.md b/CHANGELOG.md index c9a8d51be..3a9867046 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file. - Editation status not cleared after Sprite transforming - Image flickering - Show Hex dump for AS1/2 script tags +- Speaker image when sound selected not in the center ### Changed - Warning before switching deobfuscation is now optional diff --git a/src/com/jpexs/decompiler/flash/gui/ImagePanel.java b/src/com/jpexs/decompiler/flash/gui/ImagePanel.java index 22bf13f14..f7335d142 100644 --- a/src/com/jpexs/decompiler/flash/gui/ImagePanel.java +++ b/src/com/jpexs/decompiler/flash/gui/ImagePanel.java @@ -610,6 +610,10 @@ public final class ImagePanel extends JPanel implements MediaDisplay { if (img != null) { int x = 0; int y = 0; + if (timelined == null) { + x = (int) offsetPoint.getX(); + y = (int) offsetPoint.getY(); + } g2.drawImage(img.getBufferedImage(), x, y, x + img.getWidth(), y + img.getHeight(), 0, 0, img.getWidth(), img.getHeight(), null); @@ -1437,7 +1441,7 @@ public final class ImagePanel extends JPanel implements MediaDisplay { } private void setAllowMove(boolean allowMove) { - this.allowMove = allowMove; + this.allowMove = allowMove; } private void calcRect() {