Skip to content

Commit

Permalink
Add fix from PR #4611
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Mitchell committed Feb 11, 2024
1 parent 0fcfa9e commit 0f935db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions radio/src/thirdparty/libopenui/src/numberedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 0f935db

Please sign in to comment.