From eefd9c4e0d0d434aa08c658db9c1f397e87804c6 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Wed, 4 Sep 2019 16:06:59 +0200 Subject: [PATCH] lv_table: fix crash on copy in lv_table_create --- src/lv_objx/lv_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lv_objx/lv_table.c b/src/lv_objx/lv_table.c index ec8ebe5b8..ab0e47879 100644 --- a/src/lv_objx/lv_table.c +++ b/src/lv_objx/lv_table.c @@ -106,8 +106,8 @@ lv_obj_t * lv_table_create(lv_obj_t * par, const lv_obj_t * copy) ext->cell_style[1] = copy_ext->cell_style[1]; ext->cell_style[2] = copy_ext->cell_style[2]; ext->cell_style[3] = copy_ext->cell_style[3]; - ext->col_cnt = copy_ext->col_cnt; - ext->row_cnt = copy_ext->row_cnt; + lv_table_set_row_cnt(new_table, copy_ext->row_cnt); + lv_table_set_col_cnt(new_table, copy_ext->col_cnt); /*Refresh the style with new signal function*/ lv_obj_refresh_style(new_table);