fix(label) fix in lv_label_get_letter_pos with when pos==line_start
related to #2712
This commit is contained in:
@@ -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;
|
char * mutable_bidi_txt = NULL;
|
||||||
/*Handle Bidi*/
|
/*Handle Bidi*/
|
||||||
if(new_line_start == byte_id) {
|
if(new_line_start == byte_id) {
|
||||||
visual_byte_pos = byte_id - line_start;
|
visual_byte_pos = 0;
|
||||||
bidi_txt = &txt[line_start];
|
bidi_txt = &txt[line_start];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user