Commit 97a83147 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

richedit: Avoid re-calculating positions found in wrapping for painting.

When the text is wrapped, the positions for all the runs, paragraphs, and cells are already calculated and stored. The only thing left to do for painting is to offset them by the formatting rectangle and the scroll position.
parent dc03b6b2
......@@ -693,6 +693,7 @@ BOOL ME_WrapMarkedParagraphs(ME_TextEditor *editor)
c.pt.x = cell->pt.x + cell->nWidth;
c.pt.y = cell->pt.y;
cell->next_cell->member.cell.pt = c.pt;
if (!(item->member.para.next_para->member.para.nFlags & MEPF_ROWEND))
c.pt.y += cell->yTextOffset;
}
else
......
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