mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 00:41:17 +02:00
CComponentsInfoBox: delete clean textbox object before create new object
Ensures a clean environment for changed properties of a textbox in infobox.
This commit is contained in:
@@ -123,8 +123,10 @@ void CComponentsInfoBox::paint(bool do_save_bg)
|
|||||||
|
|
||||||
//set text and paint text lines
|
//set text and paint text lines
|
||||||
if (ct_text){
|
if (ct_text){
|
||||||
if (cctext == NULL)
|
if (cctext)
|
||||||
cctext = new CComponentsText();
|
delete cctext;
|
||||||
|
|
||||||
|
cctext = new CComponentsText();
|
||||||
cctext->setText(ct_text, ct_text_mode, ct_font);
|
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);
|
cctext->setDimensionsAll(x_text, y+fr_thickness, width-(x_text-x+x_offset+fr_thickness), height-2*fr_thickness);
|
||||||
cctext->paint(CC_SAVE_SCREEN_NO);
|
cctext->paint(CC_SAVE_SCREEN_NO);
|
||||||
|
Reference in New Issue
Block a user