diff --git a/src/lv_objx/lv_spinbox.c b/src/lv_objx/lv_spinbox.c index b5b2f33af3..bd46b99525 100644 --- a/src/lv_objx/lv_spinbox.c +++ b/src/lv_objx/lv_spinbox.c @@ -406,9 +406,11 @@ static void lv_spinbox_updatevalue(lv_obj_t * spinbox) memset(buf, 0, sizeof(buf)); char * buf_p = buf; - /*Add the sign*/ - (*buf_p) = ext->value >= 0 ? '+' : '-'; - buf_p++; + if (ext->range_min < 0) { // hide sign if there are only positive values + /*Add the sign*/ + (*buf_p) = ext->value >= 0 ? '+' : '-'; + buf_p++; + } int i; /*padding left*/