Browse Source

Fix issue #514: Redundant if-clause in ImageData::paste

vrld 12 years ago
parent
commit
7c2889afae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/image/ImageData.cpp

+ 1 - 1
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++)
 		{