From 3ad81e8d394d46b3da0a6bdbd6a105dee5f3dce2 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 28 Aug 2017 13:18:35 +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/3dbbd378f0a774905bb9d4d1abf30b612b456eb0 Author: vanhofen Date: 2017-08-28 (Mon, 28 Aug 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 1fe55a361..f51cb68df 100644 --- a/src/gui/timerlist.cpp +++ b/src/gui/timerlist.cpp @@ -1420,9 +1420,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()