X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8a8d0dc2ddfae4aa8d5fd832f7644a32773aac9..ce7208d49d5ce2ca1dc0b3b83f14f1d04f29c4bf:/src/common/image.cpp?ds=inline diff --git a/src/common/image.cpp b/src/common/image.cpp index ff8169fff3..a2674529de 100644 --- a/src/common/image.cpp +++ b/src/common/image.cpp @@ -1311,8 +1311,8 @@ void wxImage::Paste( const wxImage &image, int x, int y ) { 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 );