diff --git a/src/gui/widget/yaft/yaft_priv.cpp b/src/gui/widget/yaft/yaft_priv.cpp index a23bb1315..f923c0bd4 100644 --- a/src/gui/widget/yaft/yaft_priv.cpp +++ b/src/gui/widget/yaft/yaft_priv.cpp @@ -749,8 +749,8 @@ void YaFT_p::draw_line(int line) if (fb.dy_min > line * CELL_HEIGHT) fb.dy_min = line * CELL_HEIGHT; - if (fb.dy_max < (line+1) * CELL_HEIGHT - 1) - fb.dy_max = (line+1) * CELL_HEIGHT - 1; + if (fb.dy_max < (line+1) * CELL_HEIGHT) + fb.dy_max = (line+1) * CELL_HEIGHT; for (col = 0; col < cols; col++) { /* target cell */