]> git.saurik.com Git - wxWidgets.git/commit
Fixed copying only 1/3 of scanline when saving TIFF image in rare cases.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sun, 28 Aug 2011 22:44:04 +0000 (22:44 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sun, 28 Aug 2011 22:44:04 +0000 (22:44 +0000)
commita000de7794cb20bdd772e76dda87baa27642056b
tree6738848210ba451644d3f96a2a44eaa91dc153c0
parentf60e313437547e11326e34f93c549356e7291f9f
Fixed copying only 1/3 of scanline when saving TIFF image in rare cases.

If our calculated image pitch is not equal to what TIFFScanlineSize returns a scanline buffer would be used. In that case the number of bytes being copied was equal to the image's width instead of pitch (width times 3).

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