fix Thumbnail.size logic, s/if/elif/
authorTero Marttila <terom@fixme.fi>
Sun, 14 Jun 2009 18:24:14 +0300
changeset 116 2d3721b9ffd0
parent 115 d5aa320697df
child 117 a2e4562deaab
fix Thumbnail.size logic, s/if/elif/
degal/thumbnail.py
--- 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