From 0f935dbaed1e2a222863b7c2fc9c18d6936c6530 Mon Sep 17 00:00:00 2001 From: Phil Mitchell Date: Sun, 11 Feb 2024 20:28:53 +1100 Subject: [PATCH] Add fix from PR #4611 --- radio/src/thirdparty/libopenui/src/numberedit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radio/src/thirdparty/libopenui/src/numberedit.cpp b/radio/src/thirdparty/libopenui/src/numberedit.cpp index 133ed75682f..25fa05751dd 100644 --- a/radio/src/thirdparty/libopenui/src/numberedit.cpp +++ b/radio/src/thirdparty/libopenui/src/numberedit.cpp @@ -179,6 +179,8 @@ void NumberEdit::updateDisplay() std::string str; if (displayFunction != nullptr) { str = displayFunction(currentValue); + } else if (!zeroText.empty() && currentValue == 0) { + str = zeroText; } else { str = formatNumberAsString(currentValue, textFlags, 0, prefix.c_str(), suffix.c_str());