summaryrefslogtreecommitdiffstats
path: root/Panel.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-11-02 10:33:22 -0500
committerHisham Muhammad <hisham@gobolinux.org>2015-11-02 10:33:22 -0500
commitf187be92968fdf0563c17f2f8a8815ca942ed0f6 (patch)
treecb34356dca599086971a6b5ffefd106aeed68962 /Panel.c
parentfd5dd6605adfa15c28eb16c9081e1df977724c78 (diff)
Fix moving of meters
Diffstat (limited to 'Panel.c')
-rw-r--r--Panel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Panel.c b/Panel.c
index 7424fa49..16abc248 100644
--- a/Panel.c
+++ b/Panel.c
@@ -256,7 +256,7 @@ void Panel_setSelected(Panel* this, int selected) {
int size = Vector_size(this->items);
if (selected >= size) {
- return;
+ selected = size - 1;
}
if (selected < 0)
selected = 0;

© 2014-2024 Faster IT GmbH | imprint | privacy policy