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

look ahead chars when be in LV_LABEL_LONG_DOT (#1881)

Co-authored-by: Dalink <Dalink@gitee.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
iDalink 2020-11-11 19:29:51 +08:00 committed by GitHub
parent 945f5900d5
commit b79d615ae8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
- fix(draw_triangle): fix polygon/triangle drawing when the order of points is counter-clockwise
- fix(btnmatrix): fix setting the same map with modified pointers
- fix(arc) fix and improve arc dragging
- label: Repair calculate back `dot` character logical error which cause infinite loop.
## v7.7.1 (04.11.2020)
### Bugfixes

View File

@ -1191,7 +1191,7 @@ void lv_label_refr_text(lv_obj_t * label)
size_t txt_len = strlen(ext->text);
uint32_t byte_id = _lv_txt_encoded_get_byte_id(ext->text, letter_id);
while(byte_id + LV_LABEL_DOT_NUM > txt_len) {
byte_id -= _lv_txt_encoded_size(&ext->text[byte_id]);
_lv_txt_encoded_prev(ext->text, &byte_id);
letter_id--;
}