mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 15:19:16 +02:00
IDE: normalize LogicalCaretXY in TMainIDE.DoJumpToCompilerMessage
git-svn-id: trunk@30358 -
This commit is contained in:
parent
19eb2d8aa5
commit
e9bd0c8749
@ -13415,6 +13415,8 @@ begin
|
||||
SrcEdit:=SourceEditorManager.ActiveEditor;
|
||||
if LogCaretXY.Y>SrcEdit.EditorComponent.Lines.Count then
|
||||
LogCaretXY.Y:=SrcEdit.EditorComponent.Lines.Count;
|
||||
if LogCaretXY.X<1 then
|
||||
LogCaretXY.X:=1;
|
||||
TopLine:=LogCaretXY.Y-(SrcEdit.EditorComponent.LinesInWindow div 2);
|
||||
if TopLine<1 then TopLine:=1;
|
||||
if FocusEditor then begin
|
||||
|
Loading…
Reference in New Issue
Block a user