From 0d7bca1abfaba04d9f612bb00cc8b65eb71d2253 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Fri, 22 May 2020 12:07:18 +0200 Subject: [PATCH] Choice fix --- radio/src/thirdparty/libopenui/src/choice.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/choice.h b/radio/src/thirdparty/libopenui/src/choice.h index 3d3db203a..8a1ad7639 100644 --- a/radio/src/thirdparty/libopenui/src/choice.h +++ b/radio/src/thirdparty/libopenui/src/choice.h @@ -110,11 +110,11 @@ class Choice : public ChoiceBase { int value = vmin; while (index > 0) { + index--; + value++; while (value < vmax && !isValueAvailable(value)) { value++; } - value++; - index--; } return value; }