mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-27 00:22:01 +02:00
fixed TCollectionPropertEditor deleting collection item, when not in sync
git-svn-id: trunk@6873 -
This commit is contained in:
parent
a2e6b02e8c
commit
b33ad8e14d
@ -3516,7 +3516,6 @@ begin
|
||||
if NewItemIndex=i then NewItemIndex:=-1;
|
||||
end;
|
||||
CollectionListBox.ItemIndex := -1;
|
||||
CollectionListBox.Items.Delete(i);
|
||||
if NewItemIndex>i then dec(NewItemIndex);
|
||||
//debugln('TCollectionPropertyEditorForm.DeleteClick A NewItemIndex=',dbgs(NewItemIndex),' ItemIndex=',dbgs(CollectionListBox.ItemIndex),' CollectionListBox.Items.Count=',dbgs(CollectionListBox.Items.Count),' Collection.Count=',dbgs(Collection.Count));
|
||||
// unselect all items in OI (collections can act strange on delete)
|
||||
|
Loading…
Reference in New Issue
Block a user