From faafbb2c28d41b0fa7bed4c6d041fe9e30f2ffd4 Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Fri, 19 Dec 2014 12:36:23 +0100 Subject: [PATCH] redraw preview on zoom, font name cache key fixed when the font name is different from the name in the assigned DefineFontNameTag --- src/com/jpexs/decompiler/flash/gui/FontPanel.java | 2 +- src/com/jpexs/decompiler/flash/gui/ImagePanel.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/com/jpexs/decompiler/flash/gui/FontPanel.java b/src/com/jpexs/decompiler/flash/gui/FontPanel.java index c6f6a12e8..18f639b82 100644 --- a/src/com/jpexs/decompiler/flash/gui/FontPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/FontPanel.java @@ -553,7 +553,7 @@ public class FontPanel extends javax.swing.JPanel { SWF swf = f.getSwf(); String selectedName = ((FontFace) fontFaceSelection.getSelectedItem()).font.getFontName(Locale.ENGLISH); swf.sourceFontNamesMap.put(f.getFontId(), selectedName); - Configuration.addFontPair(swf.getShortFileName(), f.getFontId(), f.getFontName(), selectedName); + Configuration.addFontPair(swf.getShortFileName(), f.getFontId(), f.getFontNameIntag(), selectedName); } } diff --git a/src/com/jpexs/decompiler/flash/gui/ImagePanel.java b/src/com/jpexs/decompiler/flash/gui/ImagePanel.java index 7a1443f76..e23f1702d 100644 --- a/src/com/jpexs/decompiler/flash/gui/ImagePanel.java +++ b/src/com/jpexs/decompiler/flash/gui/ImagePanel.java @@ -415,6 +415,7 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis @Override public synchronized void zoom(double zoom) { this.zoom = zoom; + shouldDraw.set(true); } @Override @@ -491,6 +492,7 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis time = 0; drawReady = false; + shouldDraw.set(true); play(); }