1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

report_style_mod_core bugfix

This commit is contained in:
Gabor Kiss-Vamosi 2018-09-05 11:42:18 +02:00
parent f49dcdd62a
commit b9a295afaf

View File

@ -1620,14 +1620,14 @@ static void refresh_childen_position(lv_obj_t * obj, lv_coord_t x_diff, lv_coord
/**
* Refresh the style of all children of an object. (Called recursively)
* @param style_p refresh objects only with this style. (ignore is if NULL)
* @param style_p refresh objects only with this style.
* @param obj pointer to an object
*/
static void report_style_mod_core(void * style_p, lv_obj_t * obj)
{
lv_obj_t * i;
LL_READ(obj->child_ll, i) {
if(i->style_p == style_p) {
if(i->style_p == style_p || style_p == NULL) {
refresh_childen_style(i);
lv_obj_refresh_style(i);
}