use proper test for whether it's a number.
simonb simonb
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/ClockTool.cc
→
src/ClockTool.cc
@@ -227,7 +227,7 @@ std::string text(m_button.text());
int textlen = text.size(); for (int i=0; i < textlen; ++i) { - if (text[i] > '0' && text[i] <= '9') // don't bother replacing zeros + if (isdigit(text[i])) // don't bother replacing zeros text[i] = '0'; } text.append("00"); // pad