Dylan Smith : richedit: Tabs cause lines to wrap but not end of paragraph run.
Alexandre Julliard
julliard at winehq.org
Thu Jul 10 14:07:29 CDT 2008
Module: wine
Branch: master
Commit: 49468e1824cac4df5d09614884100f79b33b50cb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=49468e1824cac4df5d09614884100f79b33b50cb
Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date: Thu Jul 10 10:17:30 2008 -0400
richedit: Tabs cause lines to wrap but not end of paragraph run.
---
dlls/riched20/wrap.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c
index 82c2698..34fbf09 100644
--- a/dlls/riched20/wrap.c
+++ b/dlls/riched20/wrap.c
@@ -290,7 +290,11 @@ static ME_DisplayItem *ME_WrapHandleRun(ME_WrapContext *wc, ME_DisplayItem *p)
if (wc->bOverflown) /* just skipping final whitespaces */
{
- if (run->nFlags & (MERF_WHITESPACE|MERF_TAB)) {
+ /* End paragraph run can't overflow to the next line by itself. */
+ if (run->nFlags & MERF_ENDPARA)
+ return p->next;
+
+ if (run->nFlags & MERF_WHITESPACE) {
p->member.run.nFlags |= MERF_SKIPPED;
/* wc->pt.x += run->nWidth; */
/* skip runs consisting of only whitespaces */
More information about the wine-cvs
mailing list