From a15887cc4a00bf03f098451e752917595fda4af4 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 12 Oct 2017 12:26:02 +0200 Subject: [PATCH] CMenuWidget: don't use parameter for label width calculation Footer object does this itself. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/35f048a735910010362f0ecdbd5282a531e219b7 Author: Thilo Graf Date: 2017-10-12 (Thu, 12 Oct 2017) --- src/gui/widget/menue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 3b71a6490..12f2bd6e1 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -1553,7 +1553,7 @@ void CMenuWidget::setFooter(const struct button_label *_fbutton_labels, const in if (!footer) footer = new CComponentsFooter(x, y + height, width + scrollbar_width, 0, 0, NULL, CC_SHADOW_ON); footer->setWidth(width + scrollbar_width); - footer->setButtonLabels(fbutton_labels, fbutton_count, 0, width/fbutton_count); + footer->setButtonLabels(fbutton_labels, fbutton_count); footer_height = footer->getHeight(); footer_width = footer->getWidth(); }else{