Skip to content

Commit

Permalink
lv_draw_label: fix hint
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Jul 29, 2019
1 parent ff85310 commit ec63826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lv_draw/lv_draw_label.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void lv_draw_label(const lv_area_t * coords, const lv_area_t * mask, const lv_st
int32_t last_line_start = -1;

/*Check the hint to use the cached info*/
if(hint && y_ofs == 0) {
if(hint && y_ofs == 0 && coords->y1 < 0) {
/*If the label changed too much recalculate the hint.*/
if(LV_MATH_ABS(hint->coord_y - coords->y1) > LV_LABEL_HINT_UPDATE_TH - 2 * line_height) {
hint->line_start = -1;
Expand Down

0 comments on commit ec63826

Please sign in to comment.