mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
CComponentsInfoBox: delete clean textbox object before create new object
Ensures a clean environment for changed properties of a textbox in infobox.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0fa2bbc7c9
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-03-18 (Mon, 18 Mar 2013)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -123,7 +123,9 @@ void CComponentsInfoBox::paint(bool do_save_bg)
|
||||
|
||||
//set text and paint text lines
|
||||
if (ct_text){
|
||||
if (cctext == NULL)
|
||||
if (cctext)
|
||||
delete cctext;
|
||||
|
||||
cctext = new CComponentsText();
|
||||
cctext->setText(ct_text, ct_text_mode, ct_font);
|
||||
cctext->setDimensionsAll(x_text, y+fr_thickness, width-(x_text-x+x_offset+fr_thickness), height-2*fr_thickness);
|
||||
|
Reference in New Issue
Block a user