comctl32: When removing an image, move the remaining images one forward, not one backwards.

This commit is contained in:
Mike McCormack 2006-11-14 16:34:46 +09:00 committed by Alexandre Julliard
parent 8f375e70f8
commit 2614e0ee91
1 changed files with 2 additions and 2 deletions

View File

@ -2123,12 +2123,12 @@ ImageList_Remove (HIMAGELIST himl, INT i)
SelectObject (hdcBmp, hbmNewImage);
imagelist_copy_images( himl, himl->hdcImage, hdcBmp, i,
(himl->cCurImage - i - 1), i + 1 );
(himl->cCurImage - i - 1), i - 1 );
if (himl->hbmMask) {
SelectObject (hdcBmp, hbmNewMask);
imagelist_copy_images( himl, himl->hdcMask, hdcBmp, i,
(himl->cCurImage - i - 1), i + 1 );
(himl->cCurImage - i - 1), i - 1 );
}
}