aboutsummaryrefslogtreecommitdiff
path: root/src/ClockTool.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-10-13 21:51:37 (GMT)
committermarkt <markt>2007-10-13 21:51:37 (GMT)
commita59428d67a95a9df16554962f0a6257d6378328a (patch)
treef856ed9300c34f7a17d499f22d895610cfbc08e5 /src/ClockTool.cc
parent41b5c6dadb1f474675660cef18b812d4c2338ed2 (diff)
downloadfluxbox-a59428d67a95a9df16554962f0a6257d6378328a.zip
fluxbox-a59428d67a95a9df16554962f0a6257d6378328a.tar.bz2
merged changes from pre-devel
Diffstat (limited to 'src/ClockTool.cc')
-rw-r--r--src/ClockTool.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ClockTool.cc b/src/ClockTool.cc
index a259848..0bfa136 100644
--- a/src/ClockTool.cc
+++ b/src/ClockTool.cc
@@ -220,12 +220,12 @@ void ClockTool::update(FbTk::Subject *subj) {
220 updateTime(); 220 updateTime();
221 221
222 // + 2 to make the entire text fit inside 222 // + 2 to make the entire text fit inside
223 // we only replace numbers with zeros because everything else should be 223 // we only replace numbers with zeros because everything else should be
224 // relatively static. If we replace all text with zeros then widths of 224 // relatively static. If we replace all text with zeros then widths of
225 // proportional fonts with some strftime formats will be considerably off. 225 // proportional fonts with some strftime formats will be considerably off.
226 std::string text(m_button.text()); 226 std::string text(m_button.text());
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 (isdigit(text[i])) // don't bother replacing zeros 230 if (isdigit(text[i])) // don't bother replacing zeros
231 text[i] = '0'; 231 text[i] = '0';