use proper test for whether it's a number.

This commit is contained in:
simonb 2007-04-08 01:59:41 +00:00
parent 91963544bd
commit 52a96c4e9d

View file

@ -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