mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 06:39:39 +02:00
* try to avoid incompatibility with lazarus (and possibly others)
This commit is contained in:
parent
4112318e2f
commit
edde858cfa
@ -1946,7 +1946,11 @@ begin
|
||||
DupIgnore : Exit;
|
||||
DupError : Error(SDuplicateString,0)
|
||||
end;
|
||||
InsertItem (Result,S,AObject);
|
||||
// Avoid crash in lazarus
|
||||
if Assigned(aObject) then
|
||||
InsertItem (Result,S,AObject)
|
||||
else
|
||||
InsertItem (Result,S);
|
||||
end;
|
||||
|
||||
function TStringList.Add(const S: string): Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user