mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-30 18:02:44 +02:00
LCL: delete also ItemProps when deleting strings.
git-svn-id: trunk@40195 -
This commit is contained in:
parent
9ce1fac44c
commit
218c95590c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user