diff --git a/rtengine/iimage.h b/rtengine/iimage.h index e33b9b696..0349c6b89 100644 --- a/rtengine/iimage.h +++ b/rtengine/iimage.h @@ -689,9 +689,7 @@ namespace rtengine { assert (dest!=NULL); // Make sure that the size is the same, reallocate if necessary dest->allocate(width, height); - for (int i=0; idata, data, 3*width*height*sizeof(T)); - } + memcpy (dest->data, data, 3*width*height*sizeof(T)); } void rotate (int deg) {