git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d51f6a
)
JAL-3473 Checked value of def and min. Set def to min if lower than min.
author
Ben Soares
<bsoares@dundee.ac.uk>
Thu, 31 Oct 2019 14:18:48 +0000
(14:18 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Fri, 20 Dec 2019 10:42:31 +0000
(10:42 +0000)
src/jalview/jbgui/GPreferences.java
patch
|
blob
|
history
diff --git
a/src/jalview/jbgui/GPreferences.java
b/src/jalview/jbgui/GPreferences.java
index
0bc5d28
..
1b4a8bd
100755
(executable)
--- a/
src/jalview/jbgui/GPreferences.java
+++ b/
src/jalview/jbgui/GPreferences.java
@@
-2506,6
+2506,10
@@
public class GPreferences extends JPanel
{
max = def;
}
+ if (def < min)
+ {
+ def = min;
+ }
SpinnerModel sModel = new SpinnerNumberModel(def, min, max, 1);
s.setModel(sModel);