mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-28 09:49:28 +02:00
SynEdit: fix range check error from revision 19001 #a26d1805de
git-svn-id: trunk@19002 -
This commit is contained in:
parent
a26d1805de
commit
d92087e835
@ -978,8 +978,9 @@ procedure TSynEditUndoGroup.Insert(AIndex: Integer; AnItem: TSynEditUndoItem);
|
||||
begin
|
||||
if FCount >= FCapacity then
|
||||
Grow;
|
||||
System.Move(FItems[AIndex], FItems[AIndex+1],
|
||||
(FCount - AIndex) * SizeOf(TSynEditUndoItem));
|
||||
If AIndex < FCount then
|
||||
System.Move(FItems[AIndex], FItems[AIndex+1],
|
||||
(FCount - AIndex) * SizeOf(TSynEditUndoItem));
|
||||
FItems[AIndex] := AnItem;
|
||||
inc (FCount);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user