Fix image source not being copied in lv_imgbtn
This commit is contained in:
@@ -82,7 +82,7 @@ lv_obj_t * lv_imgbtn_create(lv_obj_t * par, const lv_obj_t * copy)
|
|||||||
/*Copy an existing image button*/
|
/*Copy an existing image button*/
|
||||||
else {
|
else {
|
||||||
#if LV_IMGBTN_TILED == 0
|
#if LV_IMGBTN_TILED == 0
|
||||||
memset(ext->img_src, 0, sizeof(ext->img_src));
|
memcpy(ext->img_src, copy_ext->img_src, sizeof(ext->img_src));
|
||||||
#else
|
#else
|
||||||
lv_imgbtn_ext_t * copy_ext = lv_obj_get_ext_attr(copy);
|
lv_imgbtn_ext_t * copy_ext = lv_obj_get_ext_attr(copy);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user