]> git.saurik.com Git - wxWidgets.git/commit
Fixed calculated image pitch being off-by-one in some cases.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sun, 28 Aug 2011 21:38:22 +0000 (21:38 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Sun, 28 Aug 2011 21:38:22 +0000 (21:38 +0000)
commit649df4bff86bf8b82a8bdb1c44b06d570b612028
tree78488d90c631d9e9b3d253686e36909a9c0f3395
parent28b31a2ad2367235dcc5f8686476692c5ea26aa4
Fixed calculated image pitch being off-by-one in some cases.

The variable linebytes sometimes counted one extra byte, which is OK for allocating but not when accessing the image later on. Calculate the value in a slightly different way and made the variable const.

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