RICHED20: Fix off-by-one error
Phil Krylov
phil at newstar.rinet.ru
Tue Jul 5 15:03:13 CDT 2005
ChangeLog:
Fixed an off-by-one error in EM_GETLINECOUNT handler.
Patch:
Index: dlls/riched20/wrap.c
===================================================================
RCS file: /home/wine/wine/dlls/riched20/wrap.c,v
retrieving revision 1.8
diff -p -u -r1.8 wrap.c
--- dlls/riched20/wrap.c 30 Jun 2005 18:10:22 -0000 1.8
+++ dlls/riched20/wrap.c 5 Jul 2005 18:53:37 -0000
@@ -375,7 +375,7 @@ void ME_WrapTextParagraph(ME_Context *c,
ME_WrapEndParagraph(&wc, p);
tp->member.para.nFlags &= ~MEPF_REWRAP;
tp->member.para.nHeight = wc.pt.y;
- tp->member.para.nRows = wc.nRow + 1;
+ tp->member.para.nRows = wc.nRow;
}
More information about the wine-patches
mailing list