Rewind the input stream after failing to load image from it.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 24 Nov 2010 00:42:45 +0000 (00:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 24 Nov 2010 00:42:45 +0000 (00:42 +0000)
commit94803e4ec8d61d24ebf9b1e483776d17e55a7ec5
tree2cadbd754b8c13b1b81845f7e622b8160d115286
parent3f74b7aeb69624c0b0aabb1ab01d241a80063ebd
Rewind the input stream after failing to load image from it.

For seekable streams, don't change the current position when loading image
fails. This allows the subsequent image handlers to succeed during image
format auto-detection even if a previous, erroneously chosen, handler failed.

Closes #12702.

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