riched20: Use a helper function to find the first row.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2020-10-28 08:43:50 +00:00 committed by Alexandre Julliard
parent da50829128
commit b3b3624079
1 changed files with 1 additions and 1 deletions

View File

@ -846,7 +846,7 @@ static void draw_table_borders( ME_Context *c, ME_Paragraph *para )
rowY = c->pt.y + para->pt.y;
if (para->fmt.dwMask & PFM_SPACEBEFORE)
rowY += ME_twips2pointsY(c, para->fmt.dySpaceBefore);
nHeight = ME_FindItemFwd( para_get_di( para ), diStartRow )->member.row.nHeight;
nHeight = para_first_row( para )->nHeight;
rowBottom = rowY + nHeight;
/* Draw horizontal lines */