diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index c2e8b06e9b5..a6e86b3c513 100644 --- a/dlls/riched20/paint.c +++ b/dlls/riched20/paint.c @@ -656,6 +656,8 @@ void ME_DrawParagraph(ME_Context *c, ME_DisplayItem *paragraph) { y += bounds.top; break; case diStartRow: + /* we should have seen a diParagraph before */ + assert(para); y += height; rcPara.top = y; rcPara.bottom = y+p->member.row.nHeight;