[PATCH 3/5] riched20: Update both co-ords during layout.

Huw Davies huw at codeweavers.com
Tue Oct 20 06:50:36 CDT 2020


This partially fixes a regression caused by
commit 195f84cfa1b81d3b526dde64f614169d5da5d86c

Signed-off-by: Huw Davies <huw at codeweavers.com>
---
 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 26f1c30b83f..aae95a59ce2 100644
--- a/dlls/riched20/wrap.c
+++ b/dlls/riched20/wrap.c
@@ -1054,14 +1054,14 @@ BOOL ME_WrapMarkedParagraphs(ME_TextEditor *editor)
 
     if (para_next( para ))
     {
-      if (c.pt.y != para_next( para )->pt.y)
+      if (c.pt.x != para_next( para )->pt.x || c.pt.y != para_next( para )->pt.y)
       {
         next = para;
         while (para_next( next ) && &next->marked_entry != next_entry &&
                next != &editor->pBuffer->pLast->member.para)
         {
           update_repaint( para_next( next ), &repaint );
-          para_next( next )->pt.y = c.pt.y;
+          para_next( next )->pt = c.pt;
           adjust_para_y( para_next( next ), &c, &repaint );
           next = para_next( next );
         }
-- 
2.23.0




More information about the wine-devel mailing list