Commit 2614e0ee authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

parent 8f375e70
......@@ -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 );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment