cc_frm_footer: re-add auto-calc label_width by default

Origin commit data
------------------
Commit: bd5602c050
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-06-26 (Mon, 26 Jun 2017)

Origin message was:
------------------
- cc_frm_footer: re-add auto-calc label_width by default
This commit is contained in:
vanhofen
2017-06-26 22:43:36 +02:00
parent b3f508bb90
commit 1f8d52be0d

View File

@@ -336,7 +336,7 @@ void CComponentsFooter::paintButtons(const int& x_pos,
this->setDimensionsAll(x_pos, y_pos, w, h); this->setDimensionsAll(x_pos, y_pos, w, h);
this->setButtonFont(font); this->setButtonFont(font);
this->setContextButton(context_buttons); 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) - 2*cch_offset);
this->paint(do_save_bg); this->paint(do_save_bg);
} }