mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-02 19:24:46 +01:00
win32, wince imagelist: fix bug in Move (issue #0011054)
git-svn-id: trunk@14694 -
This commit is contained in:
parent
f58a2b84d9
commit
1a4f957576
@ -382,7 +382,7 @@ begin
|
||||
ImageList_Copy(Handle, n + 1, Handle, n, ILCF_SWAP);
|
||||
end
|
||||
else begin
|
||||
for n := ACurIndex downto ANewIndex - 1 do
|
||||
for n := ACurIndex downto ANewIndex + 1 do
|
||||
ImageList_Copy(Handle, n - 1, Handle, n, ILCF_SWAP);
|
||||
end;
|
||||
end;
|
||||
|
||||
@ -302,7 +302,7 @@ begin
|
||||
ImageList_Copy(Handle, n + 1, Handle, n, ILCF_SWAP);
|
||||
end
|
||||
else begin
|
||||
for n := ACurIndex downto ANewIndex - 1 do
|
||||
for n := ACurIndex downto ANewIndex + 1 do
|
||||
ImageList_Copy(Handle, n - 1, Handle, n, ILCF_SWAP);
|
||||
end;
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user