mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 20:46:04 +02:00
* added try..finally to beginupdate/endupdate, mantis #29165
git-svn-id: trunk@32629 -
This commit is contained in:
parent
1d015b9620
commit
aa33a9509f
@ -951,12 +951,15 @@ Var
|
||||
Str : String;
|
||||
begin
|
||||
BeginUpdate;
|
||||
Obj:=Objects[CurIndex];
|
||||
Str:=Strings[CurIndex];
|
||||
Objects[CurIndex]:=Nil; // Prevent Delete from freeing.
|
||||
Delete(Curindex);
|
||||
InsertObject(NewIndex,Str,Obj);
|
||||
EndUpdate;
|
||||
Try
|
||||
Obj:=Objects[CurIndex];
|
||||
Str:=Strings[CurIndex];
|
||||
Objects[CurIndex]:=Nil; // Prevent Delete from freeing.
|
||||
Delete(Curindex);
|
||||
InsertObject(NewIndex,Str,Obj);
|
||||
finally
|
||||
EndUpdate;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user