JAL-3141 correct cast of spinner value
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 23 Aug 2019 14:38:29 +0000 (15:38 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 23 Aug 2019 14:38:29 +0000 (15:38 +0100)
src/jalview/jbgui/GPreferences.java

index 9f98ffa..0bc5d28 100755 (executable)
@@ -2487,7 +2487,7 @@ public class GPreferences extends JPanel
     {
       try
       {
-        i = Integer.parseInt((String) s.getValue());
+        i = ((Integer) s.getValue()).intValue();
       } catch (Exception e)
       {
         Cache.log.error(