Huw Davies : riched20: Don't try to wrap the end-of-paragraph run.
Module: wine Branch: master Commit: ab65c269f7c6979712a83cc9105a24cdacee2cf7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ab65c269f7c6979712a83cc910... Author: Huw Davies <huw(a)codeweavers.com> Date: Fri Oct 7 10:49:30 2016 +0100 riched20: Don't try to wrap the end-of-paragraph run. Signed-off-by: Huw Davies <huw(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/riched20/wrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/riched20/wrap.c b/dlls/riched20/wrap.c index 24a7b16..4c73c5d 100644 --- a/dlls/riched20/wrap.c +++ b/dlls/riched20/wrap.c @@ -624,8 +624,8 @@ static ME_DisplayItem *ME_WrapHandleRun(ME_WrapContext *wc, ME_DisplayItem *p) wc->pt.x + run->nWidth - wc->context->pt.x > wc->nAvailWidth) { int loc = wc->context->pt.x + wc->nAvailWidth - wc->pt.x; - /* total white run ? */ - if (run->nFlags & MERF_WHITESPACE) { + /* total white run or end para */ + if (run->nFlags & (MERF_WHITESPACE | MERF_ENDPARA)) { /* let the overflow logic handle it */ wc->bOverflown = TRUE; return p;
participants (1)
-
Alexandre Julliard