Commit b4b2c2ca authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu

(redraw_overlapping_rows): Fix detection of

overlapping for topmost and bottommost rows.
parent 157bca46
2009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* dispnew.c (redraw_overlapping_rows): Fix detection of
overlapping for topmost and bottommost rows.
* ftfont.c (ftfont_text_extents): Fix calculation of
metrics->descent.
......
......@@ -4129,14 +4129,14 @@ redraw_overlapping_rows (w, yb)
bottom_y = MATRIX_ROW_BOTTOM_Y (row);
if (row->overlapping_p && i > 0 && bottom_y < yb)
if (row->overlapping_p)
{
int overlaps = 0;
if (MATRIX_ROW_OVERLAPS_PRED_P (row)
if (MATRIX_ROW_OVERLAPS_PRED_P (row) && i > 0
&& !MATRIX_ROW (w->current_matrix, i - 1)->overlapped_p)
overlaps |= OVERLAPS_PRED;
if (MATRIX_ROW_OVERLAPS_SUCC_P (row)
if (MATRIX_ROW_OVERLAPS_SUCC_P (row) && bottom_y < yb
&& !MATRIX_ROW (w->current_matrix, i + 1)->overlapped_p)
overlaps |= OVERLAPS_SUCC;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment