diff options
| -rw-r--r-- | dmagick/Image.d | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dmagick/Image.d b/dmagick/Image.d index 5497e40..2303676 100644 --- a/dmagick/Image.d +++ b/dmagick/Image.d @@ -1353,8 +1353,8 @@ class Image */ void exportPixels(T)(Geometry area, T[] pixels, string map = "RGBA") const { - if ( pixels.length <= (area.width * area.height) * map.count ) - throw new ImageException(format("Pixel buffer needs more storage for %s channels.", map)); + if ( pixels.length < (area.width * area.height) * map.count ) + throw new ImageException(std.string.format("Pixel buffer needs more storage for %s channels.", map)); StorageType storage = getStorageType!(T); |
