From 5966766e26588ec85078f64226c69edcc467ada4 Mon Sep 17 00:00:00 2001 From: ray Date: Thu, 26 Jan 2006 01:16:02 +0000 Subject: [PATCH] Document a feature that's not obvious in the algorithm and which I now depend on. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1773 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../src/java/com/samskivert/swing/util/ButtonUtil.java | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/samskivert/src/java/com/samskivert/swing/util/ButtonUtil.java b/projects/samskivert/src/java/com/samskivert/swing/util/ButtonUtil.java index ca475c26..4b3f791e 100644 --- a/projects/samskivert/src/java/com/samskivert/swing/util/ButtonUtil.java +++ b/projects/samskivert/src/java/com/samskivert/swing/util/ButtonUtil.java @@ -73,6 +73,7 @@ public class ButtonUtil { // get the current value and find out where it is in the list int oldval = config.getValue(property, values[0]); + // if it's not even in the list, newidx will be 0 int newidx = (1 + IntListUtil.indexOf(values, oldval)) % values.length; config.setValue(property, values[newidx]);