lv_del_obj: fix if delted while pressed

This commit is contained in:
Gabor Kiss-Vamosi
2018-04-14 22:06:13 +02:00
parent 913517f19d
commit 8bc5770c28
2 changed files with 16 additions and 11 deletions

View File

@@ -1044,7 +1044,10 @@ static void pwd_char_hider(lv_obj_t * ta)
int16_t len = lv_txt_get_length(txt);
bool refr = false;
uint16_t i;
for(i = 0; i < len; i++) txt[i] = '*';
for(i = 0; i < len; i++) {
txt[i] = '*';
refr = true;
}
txt[i] = '\0';