From: Ben Soares Date: Thu, 31 Oct 2019 14:18:48 +0000 (+0000) Subject: JAL-3473 Checked value of def and min. Set def to min if lower than min. X-Git-Tag: Release_2_11_4_0~45^2~18^2~41 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0dba2ad8534336ee3e4f988f3b4f290506d06d1d;p=jalview.git JAL-3473 Checked value of def and min. Set def to min if lower than min. --- diff --git a/src/jalview/jbgui/GPreferences.java b/src/jalview/jbgui/GPreferences.java index 6e4b400..6de3888 100755 --- a/src/jalview/jbgui/GPreferences.java +++ b/src/jalview/jbgui/GPreferences.java @@ -2562,6 +2562,10 @@ public class GPreferences extends JPanel { max = def; } + if (def < min) + { + def = min; + } SpinnerModel sModel = new SpinnerNumberModel(def, min, max, 1); s.setModel(sModel);