mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 11:19:16 +02:00
save TListBox.ItemIndex on destroy handle
git-svn-id: trunk@6491 -
This commit is contained in:
parent
36c907fc59
commit
563264d9fa
@ -100,6 +100,9 @@ var
|
||||
i, Cnt: integer;
|
||||
begin
|
||||
LockSelectionChange;
|
||||
// save ItemIndex on destroy handle
|
||||
if ([csDestroying,csLoading]*ComponentState=[]) then
|
||||
GetItemIndex;
|
||||
//DebugLn('[TCustomListBox.DestroyHandle] A ',FItems.ClassName);
|
||||
// create internal item list
|
||||
NewStrings:= TExtendedStringList.Create(GetCachedDataSize);
|
||||
|
Loading…
Reference in New Issue
Block a user