ide: don't crash on trying to show a line for non-fpc message (bug #0014825)

git-svn-id: trunk@22210 -
This commit is contained in:
paul 2009-10-17 17:20:08 +00:00
parent 3a0ad627a7
commit 63838ba0cf

View File

@ -11366,8 +11366,10 @@ begin
FileName:=ALine.Filename;
CaretPos.x:=ALine.Column;
CaretPos.y:=ALine.LineNumber;
Result := Assigned(ALine.Parts);
if not Result then
Exit;
ErrType:=FPCErrorTypeNameToType(ALine.Parts.Values['Type']);
Result:=True;
end;
function TMainIDE.DoJumpToCompilerMessage(Index:integer;