]> git.saurik.com Git - wxWidgets.git/commitdiff
fix a bug in the test which was corrupting 1 byte beyond wxImage buffer
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 23 Jul 2008 23:23:23 +0000 (23:23 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 23 Jul 2008 23:23:23 +0000 (23:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/image/rawbmp.cpp

index 00d50b2243662ee8c8d918cbae0699f3ebbdeb72..00f04e4f8349849f655a4a5a2fe75cf71950d5cd 100644 (file)
@@ -70,7 +70,9 @@ void ImageRawTestCase::RGBImage()
 
         for ( int x = 0; x < WIDTH; x++ )
         {
 
         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;
         }
 
             ++p;
         }