Dylan Smith : richedit: Calculate tab positions relative to end of selection bar.
Module: wine Branch: master Commit: 1bec9bb440b5d55514341d476a226e393597f987 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1bec9bb440b5d55514341d476a... Author: Dylan Smith <dylan.ah.smith(a)gmail.com> Date: Fri Jun 27 09:18:50 2008 -0400 richedit: Calculate tab positions relative to end of selection bar. --- dlls/riched20/run.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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;
participants (1)
-
Alexandre Julliard