SynEdit, fixed calc pixel coordinates. Right value was used, but from wrong function

git-svn-id: trunk@17835 -
This commit is contained in:
martin 2008-12-14 23:57:05 +00:00
parent 993bd7b87d
commit 590ebab989

View File

@ -1262,7 +1262,7 @@ begin
Result:=RowCol;
Result.X := (Result.X - 1) * fCharWidth + fTextOffset;
{$IFDEF SYN_LAZARUS}
Result.Y := RowToScreenRow(CaretY) * fTextHeight + 1;
Result.Y := RowToScreenRow(RowCol.Y) * fTextHeight + 1;
{$ELSE}
Result.Y := (Result.Y - fTopLine) * fTextHeight + 1;
{$ENDIF}