aboutsummaryrefslogtreecommitdiff
path: root/src/ClockTool.cc
diff options
context:
space:
mode:
authormathias <mathias>2004-12-07 15:55:12 (GMT)
committermathias <mathias>2004-12-07 15:55:12 (GMT)
commit831daf5876f94beb87a0d878234777140e097d73 (patch)
tree8f6cd5672d30625dce63e3e66ae45dd3c730648e /src/ClockTool.cc
parente2f9a1e7bc9e32270ef2c8d8c05f9841830059a3 (diff)
downloadfluxbox-831daf5876f94beb87a0d878234777140e097d73.zip
fluxbox-831daf5876f94beb87a0d878234777140e097d73.tar.bz2
minor cosmetic issueRelease-0_9_11
Diffstat (limited to 'src/ClockTool.cc')
-rw-r--r--src/ClockTool.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ClockTool.cc b/src/ClockTool.cc
index 64d70d1..f4fb4c5 100644
--- a/src/ClockTool.cc
+++ b/src/ClockTool.cc
@@ -213,9 +213,7 @@ void ClockTool::update(FbTk::Subject *subj) {
213 updateTime(); 213 updateTime();
214 214
215 // + 2 to make the entire text fit inside 215 // + 2 to make the entire text fit inside
216 std::string text; 216 std::string text(m_button.text().size() + 2, '0');
217 for (size_t i=0; i<m_button.text().size() + 2; ++i)
218 text += '0';
219 217
220 int new_width = m_theme.font().textWidth(text.c_str(), text.size()); 218 int new_width = m_theme.font().textWidth(text.c_str(), text.size());
221 if (new_width != m_button.width()) { 219 if (new_width != m_button.width()) {