From 1178faf40051506c0b650e163705345358524d38 Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Tue, 3 Feb 2015 19:18:32 +0100 Subject: [PATCH] #790 Impossible to change letters under a font fixed --- src/com/jpexs/decompiler/flash/gui/FontPanel.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/gui/FontPanel.java b/src/com/jpexs/decompiler/flash/gui/FontPanel.java index 31be44866..b9fb14d9d 100644 --- a/src/com/jpexs/decompiler/flash/gui/FontPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/FontPanel.java @@ -142,7 +142,7 @@ public class FontPanel extends javax.swing.JPanel { for (int ic : selChars) { char c = (char) ic; if (oldchars.indexOf((int) c) > -1) { - int opt; //yes + int opt = -1; if (!(yestoall || notoall)) { opt = View.showOptionDialog(null, translate("message.font.add.exists").replace("%char%", "" + c), translate("message.warning"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE, null, yesno, translate("button.yes")); if (opt == 2) { @@ -152,12 +152,11 @@ public class FontPanel extends javax.swing.JPanel { notoall = true; } } + if (yestoall) { - opt = 0; //yes + opt = 0; // yes } else if (notoall) { - opt = 1; //no - } else { - opt = 1; + opt = 1; // no } if (opt == 1) {