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:
2016-12-18 18:48:02 +01:00
parent 7e077bb7ee
commit 239496c207
2 changed files with 11 additions and 1 deletions

View File

@@ -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;