Skip to content

Commit

Permalink
fix(label) fix lv_label_get_letter_on with BIDI enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Sep 14, 2021
1 parent 56ebb1a commit 192419e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/lv_label.c
Expand Up @@ -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 {
Expand Down

0 comments on commit 192419e

Please sign in to comment.