fix lv_label_get_letter_on in case of multi-line texts

This commit is contained in:
Gabor Kiss-Vamosi
2019-11-08 13:49:52 +01:00
parent 5441cf9998
commit a3a326c2ff

View File

@@ -766,7 +766,7 @@ uint16_t lv_label_get_letter_on(const lv_obj_t * label, lv_point_t * pos)
logical_pos = lv_encoded_get_char_id(bidi_txt, i);
#endif
return logical_pos;
return logical_pos + line_start;
}
/**