IDE: normalize LogicalCaretXY in TMainIDE.DoJumpToCompilerMessage

git-svn-id: trunk@30358 -
This commit is contained in:
mattias 2011-04-18 06:57:33 +00:00
parent 19eb2d8aa5
commit e9bd0c8749

View File

@ -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