mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
lv_label: bidi fixes
This commit is contained in:
parent
638666f685
commit
af1453400d
@ -674,7 +674,7 @@ void lv_label_get_letter_pos(const lv_obj_t * label, uint16_t char_id, lv_point_
|
|||||||
pos->y = y;
|
pos->y = y;
|
||||||
|
|
||||||
#if LV_USE_BIDI
|
#if LV_USE_BIDI
|
||||||
if(mutable_bidi_txt) lv_mem_free(mutable_bidi_txt);
|
if(mutable_bidi_txt) lv_mem_buf_release(mutable_bidi_txt);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -978,8 +978,8 @@ void lv_label_ins_text(lv_obj_t * label, uint32_t pos, const char * txt)
|
|||||||
lv_mem_buf_release(bidi_buf);
|
lv_mem_buf_release(bidi_buf);
|
||||||
#else
|
#else
|
||||||
lv_txt_ins(ext->text, pos, txt);
|
lv_txt_ins(ext->text, pos, txt);
|
||||||
lv_label_refr_text(label);
|
|
||||||
#endif
|
#endif
|
||||||
|
lv_label_refr_text(label);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user