From 60235673ec3cd773c373140f456c7f5cbb40cd97 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 23 Jul 2008 23:23:23 +0000 Subject: [PATCH] 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 --- tests/image/rawbmp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.50.0