From 7722a2b49dc15e6f5e2fd551bcc91849f04be16d Mon Sep 17 00:00:00 2001 From: Themba Dube Date: Sat, 15 Feb 2020 13:34:17 -0500 Subject: [PATCH] Remove unneeded call to `lv_obj_set_pos` --- src/lv_core/lv_obj.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/lv_core/lv_obj.c b/src/lv_core/lv_obj.c index 89a81602c..d7f2f6ee6 100644 --- a/src/lv_core/lv_obj.c +++ b/src/lv_core/lv_obj.c @@ -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*/