Module: wine Branch: master Commit: 6ef6f7167d466a54f05e512697b492e499ffac60 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6ef6f7167d466a54f05e512697...
Author: Eric Pouech eric.pouech@orange.fr Date: Sat Jul 12 10:36:21 2008 +0200
richedit: Add an assert to point out what we're expecting.
---
dlls/riched20/paint.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/riched20/paint.c b/dlls/riched20/paint.c index c2e8b06..a6e86b3 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;