Fix moving of meters

This commit is contained in:
Hisham Muhammad 2015-11-02 10:33:22 -05:00
parent fd5dd6605a
commit f187be9296
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;