From ac9ee5d1f806c02aeda18fe4b7e755b327a7e87c Mon Sep 17 00:00:00 2001 From: Samuel Date: Fri, 9 Nov 2018 20:29:59 +0800 Subject: [PATCH] Update lv_roller.c --- lv_objx/lv_roller.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lv_objx/lv_roller.c b/lv_objx/lv_roller.c index 6f28e6303..cda4cb60d 100644 --- a/lv_objx/lv_roller.c +++ b/lv_objx/lv_roller.c @@ -74,9 +74,8 @@ lv_obj_t * lv_roller_create(lv_obj_t * par, const lv_obj_t * copy) lv_roller_ext_t * ext = lv_obj_allocate_ext_attr(new_roller, sizeof(lv_roller_ext_t)); lv_mem_assert(ext); if(ext == NULL) return NULL; -#if LV_DDLIST_USE_STYLE_INDC != 0 - ext->ddlist.roller_ddlist = 0; -#endif + ext->ddlist.roller_ddlist = 0; /*Do not draw arrow by default*/ + /*The signal and design functions are not copied so set them here*/ lv_obj_set_signal_func(new_roller, lv_roller_signal); lv_obj_set_design_func(new_roller, lv_roller_design);