CComponentsHeader: fix order inside overloaded methode setCaption()

Stop() was never touched with string version of setCaption()


Origin commit data
------------------
Commit: 58316d2091
Author: Thilo Graf <dbt@novatux.de>
Date: 2017-01-21 (Sat, 21 Jan 2017)
This commit is contained in:
2017-01-21 20:42:58 +01:00
committed by Michael Liebmann
parent 7be5c2b3bf
commit 92d570b18d

View File

@@ -146,6 +146,8 @@ CComponentsHeader::~CComponentsHeader()
void CComponentsHeader::setCaption(const std::string& caption, const int& align_mode, const fb_pixel_t& text_color)
{
if (cch_cl_obj)
cch_cl_obj->Stop();
cch_text = caption;
cch_caption_align = align_mode;
cch_col_text = text_color;
@@ -153,8 +155,6 @@ void CComponentsHeader::setCaption(const std::string& caption, const int& align_
void CComponentsHeader::setCaption(neutrino_locale_t caption_locale, const int& align_mode, const fb_pixel_t& text_color)
{
if (cch_cl_obj)
cch_cl_obj->Stop();
setCaption(string(g_Locale->getText(caption_locale)), align_mode, text_color);
}