mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 22:20:25 +02:00
SynEdit, fixed calc pixel coordinates. Right value was used, but from wrong function
git-svn-id: trunk@17835 -
This commit is contained in:
parent
993bd7b87d
commit
590ebab989
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user