From af1453400dd1004129d1e67b0a78d75ac1a26b2b Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Sat, 21 Dec 2019 20:48:44 +0100 Subject: [PATCH] lv_label: bidi fixes --- src/lv_objx/lv_label.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lv_objx/lv_label.c b/src/lv_objx/lv_label.c index a581fead7..de2a5359d 100644 --- a/src/lv_objx/lv_label.c +++ b/src/lv_objx/lv_label.c @@ -674,7 +674,7 @@ void lv_label_get_letter_pos(const lv_obj_t * label, uint16_t char_id, lv_point_ pos->y = y; #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 } @@ -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); #else lv_txt_ins(ext->text, pos, txt); - lv_label_refr_text(label); #endif + lv_label_refr_text(label); } /**