use proper test for whether it's a number.
This commit is contained in:
parent
91963544bd
commit
52a96c4e9d
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ void ClockTool::update(FbTk::Subject *subj) {
|
|||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue