mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 20:39:14 +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
|
begin
|
||||||
// if FAssigning then Exit;
|
// if FAssigning then Exit;
|
||||||
if (Duplicates <> dupAccept) and not Sorted then
|
if (Duplicates <> dupAccept) and not Sorted then
|
||||||
if IndexOf(S) <> -1 then
|
if FMap.Contains(S) then
|
||||||
case Duplicates of
|
case Duplicates of
|
||||||
DupIgnore : Exit;
|
DupIgnore : Exit;
|
||||||
DupError : raise Exception.Create('TDictionaryStringList.InsertItem:'
|
DupError : raise Exception.Create('TDictionaryStringList.InsertItem:'
|
||||||
|
Loading…
Reference in New Issue
Block a user