From d3643623ec2f4667e64086001d3ac27f424d70e5 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 19 Jun 2017 21:36:10 +0200 Subject: [PATCH] cc_frm_footer: auto-calc label_width by default Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/b4fffee31b193fbc2fd95b80dfd2dd2a36364420 Author: vanhofen Date: 2017-06-19 (Mon, 19 Jun 2017) Origin message was: ------------------ - cc_frm_footer: auto-calc label_width by default ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/components/cc_frm_footer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_footer.cpp b/src/gui/components/cc_frm_footer.cpp index 74b48d754..e5badffec 100644 --- a/src/gui/components/cc_frm_footer.cpp +++ b/src/gui/components/cc_frm_footer.cpp @@ -336,7 +336,7 @@ void CComponentsFooter::paintButtons(const int& x_pos, this->setDimensionsAll(x_pos, y_pos, w, h); this->setButtonFont(font); this->setContextButton(context_buttons); - this->setButtonLabels(content, label_count, 0, label_width); + this->setButtonLabels(content, label_count, 0, label_width ? label_width : w/label_count); this->paint(do_save_bg); }