Commit 9098d5b3 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

riched20: Update both co-ords during layout.

This partially fixes a regression caused by commit 195f84cfSigned-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 4a30e060
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment