Fix themes' inconsistent behaviour after saving

Don't write the fontStyle attribute in the theme if it doesn't exist.

Fix #12642, close #12644
This commit is contained in:
ArkadiuszMichalski 2022-12-15 01:46:57 +01:00 committed by Don Ho
parent 109ad868b3
commit 4276165bbd
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ struct Style final
bool _isFontEnabled = false;
generic_string _fontName;
int _fontStyle = FONTSTYLE_NONE;
int _fontStyle = STYLE_NOT_USED;
int _fontSize = STYLE_NOT_USED;
int _nesting = FONTSTYLE_NONE;