]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/image.cpp
Minor header cleaning.
[wxWidgets.git] / src / common / image.cpp
index ff8169fff360e4911ad30857edd7468bc495548e..a2674529dec0bd15c7957f82aeb64b074f7c5971 100644 (file)
@@ -1311,8 +1311,8 @@ void wxImage::Paste( const wxImage &image, int x, int y )
         {
             for (int i = 0; i < width; i+=3)
             {
         {
             for (int i = 0; i < width; i+=3)
             {
-                if ((source_data[i]   != r) &&
-                    (source_data[i+1] != g) &&
+                if ((source_data[i]   != r) ||
+                    (source_data[i+1] != g) ||
                     (source_data[i+2] != b))
                 {
                     memcpy( target_data+i, source_data+i, 3 );
                     (source_data[i+2] != b))
                 {
                     memcpy( target_data+i, source_data+i, 3 );