1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

Remove unneeded call to lv_obj_set_pos

This commit is contained in:
Themba Dube 2020-02-15 13:34:17 -05:00
parent 4a4e6b59b1
commit 7722a2b49d

View File

@ -335,10 +335,7 @@ lv_obj_t * lv_obj_create(lv_obj_t * parent, const lv_obj_t * copy)
/*Set the same coordinates for non screen objects*/
if(lv_obj_get_parent(copy) != NULL && parent != NULL) {
lv_obj_set_pos(new_obj, lv_obj_get_x(copy), lv_obj_get_y(copy));
} else {
lv_obj_set_pos(new_obj, 0, 0);
}
}
/*Send a signal to the parent to notify it about the new child*/