Commit 1bec9bb4 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

richedit: Calculate tab positions relative to end of selection bar.

parent 66f948c0
...@@ -678,9 +678,9 @@ static SIZE ME_GetRunSizeCommon(ME_Context *c, const ME_Paragraph *para, ME_Run ...@@ -678,9 +678,9 @@ static SIZE ME_GetRunSizeCommon(ME_Context *c, const ME_Paragraph *para, ME_Run
} }
else else
{ {
pos += 720-(pos%720); pos += lDefaultTab - (pos % lDefaultTab);
} }
ppos = ME_twips2pointsX(c, pos); ppos = ME_twips2pointsX(c, pos) + c->editor->selofs;
if (ppos > startx + run->pt.x) { if (ppos > startx + run->pt.x) {
size.cx = ppos - startx - run->pt.x; size.cx = ppos - startx - run->pt.x;
break; break;
......
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