usp10: Correct error in EDIT_GetLineRect in index for ScriptStringCPtoX.

This commit is contained in:
Aric Stewart 2011-12-21 09:17:59 -06:00 committed by Alexandre Julliard
parent cd6e9bd141
commit 27e3e1a89b
1 changed files with 1 additions and 1 deletions

View File

@ -1198,7 +1198,7 @@ static void EDIT_GetLineRect(EDITSTATE *es, INT line, INT scol, INT ecol, LPRECT
pt2 = (ecol == -1) ? es->format_rect.right : (short)LOWORD(EDIT_EM_PosFromChar(es, line_index + ecol, TRUE));
if (ssa)
{
ScriptStringCPtoX(ssa, line_index + scol, FALSE, &pt3);
ScriptStringCPtoX(ssa, scol, FALSE, &pt3);
pt3+=es->format_rect.left;
}
else pt3 = pt1;