IDE: checked compiler warnings, clean up

git-svn-id: trunk@48223 -
This commit is contained in:
mattias 2015-03-10 15:09:39 +00:00
parent 21cfb7317b
commit 4502988873

View File

@ -657,7 +657,12 @@ begin
break;
end;
if Result = nil then // should never happen
Result := AnUnitInfo.OpenEditorInfo[0];
Result := AnUnitInfo.OpenEditorInfo[0]
else begin
if (WantedTopLine>0)
and (AnUnitInfo.OpenEditorInfo[j].EditorComponent<>nil) then
AnUnitInfo.OpenEditorInfo[j].EditorComponent.TopLine:=WantedTopLine;
end;
// ToDo: WantedTopLine
end;