1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(label) fix lv_label_get_letter_on with BIDI enabled

This commit is contained in:
Gabor Kiss-Vamosi 2021-09-14 15:08:11 +02:00
parent 56ebb1a4c8
commit 192419e7bb

View File

@ -501,7 +501,7 @@ uint32_t lv_label_get_letter_on(const lv_obj_t * obj, lv_point_t * pos_in)
#if LV_USE_BIDI
/*Handle Bidi*/
uint32_t cid = _lv_txt_encoded_get_char_id(bidi_txt, i);
if(txt[line_start + cid] == '\0') {
if(txt[line_start + i] == '\0') {
logical_pos = i;
}
else {