]> git.saurik.com Git - wxWidgets.git/commit
Fixed reading multiple images from ANI and ICO image files.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sun, 1 May 2011 23:35:46 +0000 (23:35 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sun, 1 May 2011 23:35:46 +0000 (23:35 +0000)
commitbf34105a41faf8e267354e7a96eb1b1e847580da
tree3311d4891fc57bdf8c2b5f904ffe6d08097e514c
parenta6afde630ce1cadbc4a36c55f0eca8a8777d3303
Fixed reading multiple images from ANI and ICO image files.

In r60852 various 'unneeded' SeekI(0) calls were removed. Examined the changes in that revision and restored all SeekI(0) calls after finding out their removal caused problems with reading more than one image from ICO and ANI files. The image handling code for these formats expects to read from the start of a stream for reading its images (as well as for DoCanRead and DoGetImageCount), regardless of the index of the requested image.

Closes #12861.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/anidecod.cpp
src/common/imagbmp.cpp