Fixing crash when passing NULL to gwinSetStyle()
This commit is contained in:
parent
91f537c91c
commit
0c695b2471
@ -6,6 +6,7 @@
|
||||
*** Changes after 2.6 ***
|
||||
FEATURE: Added EXC7200 driver
|
||||
FEATURE: Added STM32F439i-EVAL board files
|
||||
FIX: Fixed crash when passing NULL to gwinSetStyle()
|
||||
|
||||
|
||||
*** Release 2.6 ***
|
||||
|
@ -588,8 +588,8 @@ void gwinSetStyle(GHandle gh, const GWidgetStyle *pstyle) {
|
||||
return;
|
||||
|
||||
gw->pstyle = pstyle ? pstyle : defaultStyle;
|
||||
gh->bgcolor = pstyle->background;
|
||||
gh->color = pstyle->enabled.text;
|
||||
gh->bgcolor = gw->pstyle->background;
|
||||
gh->color = gw->pstyle->enabled.text;
|
||||
|
||||
_gwinUpdate(gh);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user