Skip to content

Commit

Permalink
fix(label) update lv_label_get_letter_pos to work with LV_BASE_DIR_AU…
Browse files Browse the repository at this point in the history
…TO too

related to #2712
  • Loading branch information
kisvegabor committed Oct 29, 2021
1 parent 3d0a21e commit 580e05a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/widgets/lv_label.c
Original file line number Diff line number Diff line change
@@ -349,6 +349,8 @@ void lv_label_get_letter_pos(const lv_obj_t * obj, uint32_t char_id, lv_point_t
uint32_t visual_byte_pos;
#if LV_USE_BIDI
lv_base_dir_t base_dir = lv_obj_get_style_base_dir(obj, LV_PART_MAIN);
if(base_dir == LV_BASE_DIR_AUTO) base_dir = _lv_bidi_detect_base_dir(txt);

char * mutable_bidi_txt = NULL;
/*Handle Bidi*/
if(new_line_start == byte_id) {

0 comments on commit 580e05a

Please sign in to comment.