diff --git a/dlls/riched20/run.c b/dlls/riched20/run.c index a64c9f5..0028536 100644 --- a/dlls/riched20/run.c +++ b/dlls/riched20/run.c @@ -678,9 +678,9 @@ static SIZE ME_GetRunSizeCommon(ME_Context *c, const ME_Paragraph *para, ME_Run } 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) { size.cx = ppos - startx - run->pt.x; break;