Skip to content

Commit

Permalink
Fix moving of meters
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Nov 2, 2015
1 parent fd5dd66 commit f187be9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions MetersPanel.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ static HandlerResult MetersPanel_eventHandler(Panel* super, int ch) {
Vector_remove(this->meters, selected);
Panel_remove(super, selected);
}
MetersPanel_setMoving(this, false);
result = HANDLED;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion Panel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f187be9

Please sign in to comment.