all repos — fluxbox @ 52a96c4e9dc21b53ccfa753e922e67981bca4d36

custom fork of the fluxbox windowmanager

use proper test for whether it's a number.
simonb simonb
commit

52a96c4e9dc21b53ccfa753e922e67981bca4d36

parent

91963544bdb919f40d4b54f7acaf665373ca5170

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/ClockTool.ccsrc/ClockTool.cc

@@ -227,7 +227,7 @@ std::string text(m_button.text());

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