LCL: delete also ItemProps when deleting strings.

git-svn-id: trunk@40195 -
This commit is contained in:
juha 2013-02-06 14:43:25 +00:00
parent 9ce1fac44c
commit 218c95590c

View File

@ -431,10 +431,18 @@ begin
end;
procedure TValueListStrings.Delete(Index: Integer);
var
i: Integer;
begin
Changing;
inherited Delete(Index);
// ToDo: Delete also ItemProps
// Delete also ItemProps
if Index<=Count then begin
FItemProps[Index].Free;
for i := Index to Length(FItemProps)-1 do
FItemProps[i] := FItemProps[i+1];
SetLength(FItemProps, Count);
end;
Changed;
end;