Update lv_roller.c

This commit is contained in:
Samuel
2018-11-09 20:29:59 +08:00
committed by GitHub
parent 54435fce60
commit ac9ee5d1f8

View File

@@ -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);