mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 05:21:27 +02:00
VirtualTreeViews: Fix compilation with FPC 3.2. Issue #36047.
git-svn-id: branches/fixes_2_0@61814 -
This commit is contained in:
parent
c3931c1433
commit
0471a9bf67
@ -8014,12 +8014,12 @@ begin
|
||||
if OldPosition < Position then
|
||||
begin
|
||||
// column will be moved up so move down other entries
|
||||
Move(FPositionToIndex[OldPosition + 1], FPositionToIndex[OldPosition], (Position - OldPosition) * SizeOf(Cardinal));
|
||||
System.Move(FPositionToIndex[OldPosition + 1], FPositionToIndex[OldPosition], (Position - OldPosition) * SizeOf(Cardinal));
|
||||
end
|
||||
else
|
||||
begin
|
||||
// column will be moved down so move up other entries
|
||||
Move(FPositionToIndex[Position], FPositionToIndex[Position + 1], (OldPosition - Position) * SizeOf(Cardinal));
|
||||
System.Move(FPositionToIndex[Position], FPositionToIndex[Position + 1], (OldPosition - Position) * SizeOf(Cardinal));
|
||||
end;
|
||||
FPositionToIndex[Position] := Column.Index;
|
||||
end;
|
||||
@ -8264,7 +8264,7 @@ begin
|
||||
begin
|
||||
// Index found. Move all higher entries one step down and remove the last entry.
|
||||
if I < Upper then
|
||||
Move(FPositionToIndex[I + 1], FPositionToIndex[I], (Upper - I) * SizeOf(TColumnIndex));
|
||||
System.Move(FPositionToIndex[I + 1], FPositionToIndex[I], (Upper - I) * SizeOf(TColumnIndex));
|
||||
end;
|
||||
// Decrease all indices, which are greater than the index to be deleted.
|
||||
if FPositionToIndex[I] > OldIndex then
|
||||
|
Loading…
Reference in New Issue
Block a user