From abd4c10402571c99235d8ffd217711a2f9a2aec7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Mon, 2 Jun 2025 22:14:58 +0200 Subject: [PATCH] Minimum frame count for subsprite animation export is 2 --- .../decompiler/flash/gui/ExportSubspriteAnimationDialog.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/gui/ExportSubspriteAnimationDialog.java b/src/com/jpexs/decompiler/flash/gui/ExportSubspriteAnimationDialog.java index 380abe0aa..302b11edf 100644 --- a/src/com/jpexs/decompiler/flash/gui/ExportSubspriteAnimationDialog.java +++ b/src/com/jpexs/decompiler/flash/gui/ExportSubspriteAnimationDialog.java @@ -50,7 +50,7 @@ public class ExportSubspriteAnimationDialog extends AppDialog { private int result = ERROR_OPTION; - private JTextField lengthTextField = new JTextField("1", 3); + private JTextField lengthTextField = new JTextField("2", 3); private JComboBox formatComboBox; private final MainPanel mainPanel; private JButton okButton; @@ -210,7 +210,7 @@ public class ExportSubspriteAnimationDialog extends AppDialog { private void check() { try { int len = Integer.parseInt(lengthTextField.getText()); - okButton.setEnabled(len > 0); + okButton.setEnabled(len > 1); } catch (NumberFormatException nfe) { okButton.setEnabled(false); }