win32, wince imagelist: fix bug in Move (issue #0011054)

git-svn-id: trunk@14694 -
This commit is contained in:
paul 2008-03-31 01:09:12 +00:00
parent f58a2b84d9
commit 1a4f957576
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;