From e925ec373ec4c35bcdf8932266c48da60808f942 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 12 Oct 2017 12:26:02 +0200 Subject: [PATCH] Revert "CTimerList: adjust label width in footer dependent by count of buttons" This reverts commit d8caaaf75815f98af6d4a1758025f68b827c446b. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/88e488d3a0e78b7d20c1a037c8cb82776089ee95 Author: Thilo Graf Date: 2017-10-12 (Thu, 12 Oct 2017) --- src/gui/timerlist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/timerlist.cpp b/src/gui/timerlist.cpp index aca24ed3f..89b5d735b 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -1411,9 +1411,9 @@ void CTimerList::paintFoot() footer.enableShadow(CC_SHADOW_ON, -1, true); if (timerlist.empty()) - footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, width, footer_height, 2, &(TimerListButtons[1]), width/(2+1)); + footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, width, footer_height, 2, &(TimerListButtons[1])); else - footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, width, footer_height, c, TimerListButtons, width/(c-1)); + footer.paintButtons(x, y + height - OFFSET_SHADOW - footer_height, width, footer_height, c, TimerListButtons); } void CTimerList::paint()