[choice] fixup bounding and showing current value

This commit is contained in:
Peter Feerick
2021-09-22 21:53:26 +10:00
parent 5ed1d63d6e
commit 5ced0de44a
+2 -2
View File
@@ -111,8 +111,8 @@ void Choice::paint(BitmapBuffer * dc)
str = textHandler(val).c_str();
} else {
val -= vmin;
if (val > 0 && val < values.size()) {
values[val - vmin].c_str();
if (val >= 0 && val < (int)values.size()) {
str = values[val].c_str();
}
}