From 86ce31b987faa2db51ddde701c9e14eaa8503c3e Mon Sep 17 00:00:00 2001 From: TudbuT Date: Tue, 25 Jun 2024 07:29:28 +0200 Subject: [PATCH] fix an off by one --- src/main/java/de/com/baseband/clientboot/CBWindow.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/com/baseband/clientboot/CBWindow.java b/src/main/java/de/com/baseband/clientboot/CBWindow.java index 5408fd5..a652596 100644 --- a/src/main/java/de/com/baseband/clientboot/CBWindow.java +++ b/src/main/java/de/com/baseband/clientboot/CBWindow.java @@ -65,7 +65,7 @@ public class CBWindow extends JFrame implements WindowListener { } } else { - if(--selected == list.size()) { + if(++selected == list.size()) { selected--; wasMovingUp = true; }