mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix(label) fix in lv_label_get_letter_pos with when pos==line_start
related to #2712
This commit is contained in:
parent
e95efc152f
commit
58f3f5625c
@ -351,7 +351,7 @@ void lv_label_get_letter_pos(const lv_obj_t * obj, uint32_t char_id, lv_point_t
|
||||
char * mutable_bidi_txt = NULL;
|
||||
/*Handle Bidi*/
|
||||
if(new_line_start == byte_id) {
|
||||
visual_byte_pos = byte_id - line_start;
|
||||
visual_byte_pos = 0;
|
||||
bidi_txt = &txt[line_start];
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user