Huw Davies : riched20: Update both co-ords during layout.
Alexandre Julliard
julliard at winehq.org
Tue Oct 20 15:57:17 CDT 2020
Module: wine
Branch: master
Commit: 9098d5b300880697ef6dc86fa2f9a274d85ae878
URL: https://source.winehq.org/git/wine.git/?a=commit;h=9098d5b300880697ef6dc86fa2f9a274d85ae878
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Oct 20 12:50:36 2020 +0100
riched20: Update both co-ords during layout.
This partially fixes a regression caused by
commit 195f84cfa1b81d3b526dde64f614169d5da5d86c
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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 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 );
}
More information about the wine-cvs
mailing list