riched20: Only retrieve the next row.

This commit is contained in:
Huw Davies 2013-02-25 12:59:26 +00:00 committed by Alexandre Julliard
parent 41dd421222
commit 87163410e5
1 changed files with 2 additions and 2 deletions

View File

@ -930,8 +930,8 @@ static BOOL ME_FindPixelPos(ME_TextEditor *editor, int x, int y,
p = ME_FindItemFwd(p, diRun); p = ME_FindItemFwd(p, diRun);
break; break;
} }
pp = ME_FindItemFwd(p, diStartRowOrParagraphOrEnd); pp = ME_FindItemFwd(p, diStartRow);
if (pp->type != diStartRow) if (!pp)
{ {
p = ME_FindItemFwd(p, diRun); p = ME_FindItemFwd(p, diRun);
break; break;