From 53dbe945f2ae3469fe5320760e3f2b3d65897964 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 23 Aug 2019 15:38:29 +0100 Subject: [PATCH] JAL-3141 correct cast of spinner value --- src/jalview/jbgui/GPreferences.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/jbgui/GPreferences.java b/src/jalview/jbgui/GPreferences.java index 9f98ffa..0bc5d28 100755 --- a/src/jalview/jbgui/GPreferences.java +++ b/src/jalview/jbgui/GPreferences.java @@ -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( -- 1.7.10.2