From 7c2889afaeca5e44bf887ef81d1e138e1c2ece66 Mon Sep 17 00:00:00 2001 From: vrld Date: Fri, 23 Nov 2012 09:12:07 +0100 Subject: [PATCH] Fix issue #514: Redundant if-clause in ImageData::paste --- src/modules/image/ImageData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/image/ImageData.cpp b/src/modules/image/ImageData.cpp index 13880ee01..ad038bfc3 100644 --- a/src/modules/image/ImageData.cpp +++ b/src/modules/image/ImageData.cpp @@ -133,7 +133,7 @@ void ImageData::paste(ImageData *src, int dx, int dy, int sx, int sy, int sw, in if (sw == getWidth() && getWidth() == src->getWidth() && sh == getHeight() && getHeight() == src->getHeight()) memcpy(d, s, sizeof(pixel) * sw * sh); - else if (sw > 0 && sh > 0) // Otherwise, copy each row individually + else if (sw > 0) // Otherwise, copy each row individually { for (int i = 0; i < sh; i++) {