From: Vadim Zeitlin Date: Wed, 23 Jul 2008 23:23:23 +0000 (+0000) Subject: fix a bug in the test which was corrupting 1 byte beyond wxImage buffer X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/60235673ec3cd773c373140f456c7f5cbb40cd97 fix a bug in the test which was corrupting 1 byte beyond wxImage buffer git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/tests/image/rawbmp.cpp b/tests/image/rawbmp.cpp index 00d50b2243..00f04e4f83 100644 --- a/tests/image/rawbmp.cpp +++ b/tests/image/rawbmp.cpp @@ -70,7 +70,9 @@ void ImageRawTestCase::RGBImage() for ( int x = 0; x < WIDTH; x++ ) { - p.Data() = (x + y) % 2 ? 0 : -1; + p.Red() = + p.Green() = + p.Blue() = (x + y) % 2 ? 0 : -1; ++p; }