diff options
Diffstat (limited to 'src/ClockTool.cc')
-rw-r--r-- | src/ClockTool.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ClockTool.cc b/src/ClockTool.cc index 99cbb06..a259848 100644 --- a/src/ClockTool.cc +++ b/src/ClockTool.cc | |||
@@ -227,7 +227,7 @@ void ClockTool::update(FbTk::Subject *subj) { | |||
227 | 227 | ||
228 | int textlen = text.size(); | 228 | int textlen = text.size(); |
229 | for (int i=0; i < textlen; ++i) { | 229 | for (int i=0; i < textlen; ++i) { |
230 | if (text[i] > '0' && text[i] <= '9') // don't bother replacing zeros | 230 | if (isdigit(text[i])) // don't bother replacing zeros |
231 | text[i] = '0'; | 231 | text[i] = '0'; |
232 | } | 232 | } |
233 | text.append("00"); // pad | 233 | text.append("00"); // pad |