From 1799ea14694ab4bf8d7d3e489f07d24423ff6c5d Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 19 Aug 2018 21:14:56 +0200 Subject: [PATCH] src/gui/components/cc_frm_footer.cpp: fix assinged vector content Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/e7672dad0d8c872724d3e8f4001c2009f1483d30 Author: Thilo Graf Date: 2018-08-19 (Sun, 19 Aug 2018) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/components/cc_frm_footer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_footer.cpp b/src/gui/components/cc_frm_footer.cpp index c49b7fe15..235405e3a 100644 --- a/src/gui/components/cc_frm_footer.cpp +++ b/src/gui/components/cc_frm_footer.cpp @@ -318,10 +318,12 @@ void CComponentsFooter::setButtonLabels(const vector &v_content buttons[i].button = v_content[i].button; buttons[i].text = v_content[i].text; buttons[i].locale = v_content[i].locale; - buttons[i].directKeys = v_content[i].directKeys; + for (size_t j= 0; j< v_content[i].directKeys.size(); j++) + buttons[i].directKeys.push_back(v_content[i].directKeys[j]); buttons[i].btn_result = v_content[i].btn_result; buttons[i].btn_alias = v_content[i].btn_alias; } + setButtonLabels(buttons, label_count, chain_width, label_width); delete[] buttons; }