diff options
author | simonb <simonb> | 2007-04-08 01:59:41 (GMT) |
---|---|---|
committer | simonb <simonb> | 2007-04-08 01:59:41 (GMT) |
commit | 52a96c4e9dc21b53ccfa753e922e67981bca4d36 (patch) | |
tree | deb9d061b9f9c686b0972f52aa0a1c58e653f65b /src | |
parent | 91963544bdb919f40d4b54f7acaf665373ca5170 (diff) | |
download | fluxbox_paul-52a96c4e9dc21b53ccfa753e922e67981bca4d36.zip fluxbox_paul-52a96c4e9dc21b53ccfa753e922e67981bca4d36.tar.bz2 |
use proper test for whether it's a number.
Diffstat (limited to 'src')
-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 |