all repos — fluxbox @ 831daf5876f94beb87a0d878234777140e097d73

custom fork of the fluxbox windowmanager

minor cosmetic issue
mathias mathias
commit

831daf5876f94beb87a0d878234777140e097d73

parent

e2f9a1e7bc9e32270ef2c8d8c05f9841830059a3

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

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

@@ -213,9 +213,7 @@ void ClockTool::update(FbTk::Subject *subj) {

updateTime(); // + 2 to make the entire text fit inside - std::string text; - for (size_t i=0; i<m_button.text().size() + 2; ++i) - text += '0'; + std::string text(m_button.text().size() + 2, '0'); int new_width = m_theme.font().textWidth(text.c_str(), text.size()); if (new_width != m_button.width()) {