SourceEditor: Fix IsCaretOnScreen (for finding jump target edit)

git-svn-id: trunk@25412 -
This commit is contained in:
martin 2010-05-15 00:31:15 +00:00
parent 7af77a0ab8
commit 8a1ed611d5

View File

@ -4456,7 +4456,7 @@ var
begin
LinesInWin := EditorComponent.LinesInWindow;
CurTopLine := EditorComponent.TopView;
Y := EditorComponent.TextIndexToViewPos(EditorComponent.CaretY);
Y := EditorComponent.TextIndexToViewPos(ACaret.Y);
if UsesoftCenter then begin
MinLines := Min(
Min( Max(LinesInWin div SoftCenterFactor, SoftCenterMinimum),