aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonb <simonb>2007-04-08 01:59:41 (GMT)
committersimonb <simonb>2007-04-08 01:59:41 (GMT)
commit52a96c4e9dc21b53ccfa753e922e67981bca4d36 (patch)
treedeb9d061b9f9c686b0972f52aa0a1c58e653f65b
parent91963544bdb919f40d4b54f7acaf665373ca5170 (diff)
downloadfluxbox-52a96c4e9dc21b53ccfa753e922e67981bca4d36.zip
fluxbox-52a96c4e9dc21b53ccfa753e922e67981bca4d36.tar.bz2
use proper test for whether it's a number.
-rw-r--r--src/ClockTool.cc2
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