From 6ef6f7167d466a54f05e512697b492e499ffac60 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sat, 12 Jul 2008 10:36:21 +0200 Subject: [PATCH] richedit: Add an assert to point out what we're expecting. --- dlls/riched20/paint.c | 2 ++ 1 file changed, 2 insertions(+) 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;