diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c index 01a1d57..39dd248 100644 --- a/dlls/riched20/wrap.c +++ b/dlls/riched20/wrap.c @@ -296,7 +296,7 @@ static ME_DisplayItem *ME_WrapHandleRun(ME_WrapContext *wc, ME_DisplayItem *p) if (run->nFlags & MERF_WHITESPACE) { p->member.run.nFlags |= MERF_SKIPPED; - /* wc->pt.x += run->nWidth; */ + wc->pt.x += run->nWidth; /* skip runs consisting of only whitespaces */ return p->next; } @@ -364,8 +364,9 @@ static ME_DisplayItem *ME_WrapHandleRun(ME_WrapContext *wc, ME_DisplayItem *p) pp = ME_SplitByBacktracking(wc, p, loc); if (pp == wc->pRowStart) { - /* we had only spaces so far, entire content can be omitted */ - wc->pt.x = 0; + /* we have a row that starts with spaces, or a single large character + * which we cannot split. */ + wc->pt.x += run->nWidth; return p->next; } if (p != pp) /* found a suitable split point */