Fixed saving TIFF images to wxMemoryOutputStream.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Thu, 18 Aug 2011 13:15:43 +0000 (13:15 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Thu, 18 Aug 2011 13:15:43 +0000 (13:15 +0000)
commit7ffc9affb41239c681e25ccccd6a2e55a6f0b81a
tree1dd16d39bc1d0d6aacdbb8514c5ed48b5ad41438
parentd06c3098ab6add89fbee763416d5e5546c66fe23
Fixed saving TIFF images to wxMemoryOutputStream.

Libtiff attempts to seek past the end of a stream and the behaviour for this can vary per stream implementation. Fixed failure to seek by filling the gap between the end of stream and new seek position with zeroes. Enabled a unit test which so far was disabled due to wxMemoryOutputStream failing to save a TIFF because of the seeking problem.

Also closes #4089.

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