From 590ebab989b7cd969015fa076c52b925a68e6c70 Mon Sep 17 00:00:00 2001 From: martin Date: Sun, 14 Dec 2008 23:57:05 +0000 Subject: [PATCH] SynEdit, fixed calc pixel coordinates. Right value was used, but from wrong function git-svn-id: trunk@17835 - --- components/synedit/synedit.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/synedit/synedit.pp b/components/synedit/synedit.pp index d99d53ad46..b5576c2d92 100644 --- a/components/synedit/synedit.pp +++ b/components/synedit/synedit.pp @@ -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}