1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

lv_ta_set_one_line: retrieve text alignment correctly

`lv_label_get_align` should be used, not `lv_ta_get_text_align`.
This commit is contained in:
embeddedt 2020-02-05 10:01:44 -05:00 committed by GitHub
parent f960c75e3f
commit 79a65213d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -733,7 +733,7 @@ void lv_ta_set_one_line(lv_obj_t * ta, bool en)
lv_ta_ext_t * ext = lv_obj_get_ext_attr(ta);
if(ext->one_line == en) return;
lv_label_align_t old_align = lv_ta_get_text_align(ta);
lv_label_align_t old_align = lv_label_get_align(ext->label);
if(en) {
const lv_style_t * style_ta = lv_obj_get_style(ta);