[PATCH 2/5] riched20: Use a helper function to find the first row.

Huw Davies huw at codeweavers.com
Wed Oct 28 03:43:50 CDT 2020


Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 dlls/riched20/paint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c
index d3bbbc9d672..d15c47b72aa 100644
--- a/dlls/riched20/paint.c
+++ b/dlls/riched20/paint.c
@@ -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 */
-- 
2.23.0




More information about the wine-devel mailing list