diff --git a/src/misc/lv_text.c b/src/misc/lv_text.c index d18aa2a2d3..de182033b1 100644 --- a/src/misc/lv_text.c +++ b/src/misc/lv_text.c @@ -118,7 +118,8 @@ void lv_text_get_size(lv_point_t * size_res, const char * text, const lv_font_t } /*Calculate the longest line*/ - int32_t act_line_length = lv_text_get_width(&text[line_start], new_line_start - line_start, font, letter_space); + int32_t act_line_length = lv_text_get_width_with_flags(&text[line_start], new_line_start - line_start, font, + letter_space, flag); size_res->x = LV_MAX(act_line_length, size_res->x); line_start = new_line_start; diff --git a/src/others/observer/lv_observer.c b/src/others/observer/lv_observer.c index e687cf459f..dd4f125019 100644 --- a/src/others/observer/lv_observer.c +++ b/src/others/observer/lv_observer.c @@ -430,6 +430,7 @@ void lv_obj_remove_from_subject(lv_obj_t * obj, lv_subject_t * subject) * `LV_EVENT_VALUE_CHANGED` event associated with `subject` in case * one of the `..._bind_value()` functions was used. */ lv_obj_remove_event_cb_with_user_data(obj, NULL, subject); + } void * lv_observer_get_target(lv_observer_t * observer) diff --git a/tests/ref_imgs/draw/label_selection_and_recolor.png b/tests/ref_imgs/draw/label_selection_and_recolor.png index 3ff60c09bc..4e4af5b220 100644 Binary files a/tests/ref_imgs/draw/label_selection_and_recolor.png and b/tests/ref_imgs/draw/label_selection_and_recolor.png differ diff --git a/tests/ref_imgs_vg_lite/draw/label_selection_and_recolor.png b/tests/ref_imgs_vg_lite/draw/label_selection_and_recolor.png index 99b2c90d29..e18e7306bf 100644 Binary files a/tests/ref_imgs_vg_lite/draw/label_selection_and_recolor.png and b/tests/ref_imgs_vg_lite/draw/label_selection_and_recolor.png differ