From 6c5f974ed6b4cc64714dbed9cf6f6ce2fc773ca4 Mon Sep 17 00:00:00 2001 From: Honfika Date: Sun, 18 Aug 2013 19:28:20 +0200 Subject: [PATCH] Issue #330: protection against adding the same multiple cyrillic characters doesn't work --- trunk/src/com/jpexs/decompiler/flash/gui/GraphFrame.java | 1 - trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/gui/GraphFrame.java b/trunk/src/com/jpexs/decompiler/flash/gui/GraphFrame.java index b67579031..dfd4ef8ed 100644 --- a/trunk/src/com/jpexs/decompiler/flash/gui/GraphFrame.java +++ b/trunk/src/com/jpexs/decompiler/flash/gui/GraphFrame.java @@ -303,7 +303,6 @@ public class GraphFrame extends AppFrame { } private void setVisibleSize(Dimension dim) { - setSize(new Dimension(dim.width + frameWidthDiff, dim.height + frameHeightDiff)); } diff --git a/trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java b/trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java index 00a6d54a4..d6535ae6b 100644 --- a/trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java +++ b/trunk/src/com/jpexs/decompiler/flash/gui/MainFrame.java @@ -2192,6 +2192,7 @@ public class MainFrame extends AppRibbonFrame implements ActionListener, TreeSel char c = newchars.charAt(i); if (oldchars.indexOf((int) c) == -1) { f.addCharacter(swf.tags, c, fontSelection.getSelectedItem().toString()); + oldchars += c; } } fontAddCharactersField.setText("");