mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
CComponentsHeader: ensure to have correct font instances after changed font
On possible changed font settings, font objects can be invalid and we have a crash. With this fix it's possible, that CNeutrinoApp::setupFont() method clean up header font object itself.
This commit is contained in:
@@ -68,6 +68,8 @@ class CComponentsHeader : public CComponentsForm, public CCTextScreen
|
||||
fb_pixel_t cch_col_text;
|
||||
///property: caption font, see also setCaptionFont()
|
||||
Font* cch_font;
|
||||
///reset font
|
||||
void resetFont();
|
||||
|
||||
///property: internal y-position for all items
|
||||
int cch_items_y;
|
||||
|
Reference in New Issue
Block a user