Commits

vrld committed 82df76d

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

  • Participants
  • Parent commits 29c84a4

Comments (0)

Files changed (1)

File src/modules/image/ImageData.cpp

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