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

fix set_digit_format

This commit is contained in:
AloyseTech 2018-11-05 14:47:30 +01:00
parent b0962095f3
commit d5747a0379

View File

@ -146,7 +146,7 @@ void lv_spinbox_set_digit_format(const lv_obj_t * spinbox, uint8_t digit_count,
if(digit_count > LV_SPINBOX_MAX_DIGIT_COUNT) if(digit_count > LV_SPINBOX_MAX_DIGIT_COUNT)
digit_count = LV_SPINBOX_MAX_DIGIT_COUNT; digit_count = LV_SPINBOX_MAX_DIGIT_COUNT;
if(separator_position < LV_SPINBOX_MAX_DIGIT_COUNT) if(separator_position > LV_SPINBOX_MAX_DIGIT_COUNT)
separator_position = LV_SPINBOX_MAX_DIGIT_COUNT; separator_position = LV_SPINBOX_MAX_DIGIT_COUNT;
ext->digit_count = digit_count; ext->digit_count = digit_count;