degal/thumbnail.py
changeset 116 2d3721b9ffd0
parent 115 d5aa320697df
child 122 292aaba6d6ec
--- a/degal/thumbnail.py	Sun Jun 14 18:08:55 2009 +0300
+++ b/degal/thumbnail.py	Sun Jun 14 18:24:14 2009 +0300
@@ -58,7 +58,7 @@
             height = max(img_height * thumb_width / img_width, 1)
             width = thumb_width
         
-        if img_height > thumb_height :
+        elif img_height > thumb_height :
             width = max(img_width * thumb_height / img_height, 1)
             height = thumb_height