mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 06:56:15 +02:00
LazUtils, a small fix in TDictionaryStringList.InsertItem
git-svn-id: trunk@40538 -
This commit is contained in:
parent
aeba11b9c8
commit
58b6eb6943
@ -111,7 +111,7 @@ procedure TDictionaryStringList.InsertItem(Index: Integer; const S: string);
|
||||
begin
|
||||
// if FAssigning then Exit;
|
||||
if (Duplicates <> dupAccept) and not Sorted then
|
||||
if IndexOf(S) <> -1 then
|
||||
if FMap.Contains(S) then
|
||||
case Duplicates of
|
||||
DupIgnore : Exit;
|
||||
DupError : raise Exception.Create('TDictionaryStringList.InsertItem:'
|
||||
|
Loading…
Reference in New Issue
Block a user