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

This commit is contained in:
Dylan Smith 2008-06-27 09:18:50 -04:00 committed by Alexandre Julliard
parent 66f948c010
commit 1bec9bb440
1 changed files with 2 additions and 2 deletions

View File

@ -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;