From 72d80d208fa8bd0c6c0f4688dcbdeb98b10e0d6f Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Tue, 12 Dec 2006 01:03:34 +0000 Subject: #101970: image_scale() should not scale to identical sizes --- includes/image.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/image.inc b/includes/image.inc index 93622f509..fb3689d71 100644 --- a/includes/image.inc +++ b/includes/image.inc @@ -117,7 +117,7 @@ function image_scale($source, $destination, $width, $height) { $info = image_get_info($source); // don't scale up - if ($width > $info['width'] && $height > $info['height']) { + if ($width >= $info['width'] && $height >= $info['height']) { return FALSE; } -- cgit v1.2.3