diff src/modules/image/ImageData.cpp @ 1158:82df76da9b39

Fix issue #514: Redundant if-clause in ImageData::paste
author vrld <vrld@vrld.org>
date Fri, 23 Nov 2012 09:12:07 +0100
parents 86a44f2bc38f
children acc815b40a4d b7f097053d74
line wrap: on
line diff
--- a/src/modules/image/ImageData.cpp	Fri Nov 23 09:08:36 2012 +0100
+++ b/src/modules/image/ImageData.cpp	Fri Nov 23 09:12:07 2012 +0100
@@ -133,7 +133,7 @@
 	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++)
 		{