commit 363f3e616d62f5167a13547990dc3649643eb1ab
Author: Christophe Fergeau <cferg...@mandriva.com>
Date:   Wed Oct 21 11:40:14 2009 +0200

    properly compute scaled_width when resizing thumbnails
    
    Bug spotted and fixed by wuda_ <wu_yuan_c...@hotmail.com>

 src/ithumb-writer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ithumb-writer.c b/src/ithumb-writer.c
index 85ae1a2..b8ccd33 100644
--- a/src/ithumb-writer.c
+++ b/src/ithumb-writer.c
@@ -746,7 +746,7 @@ ithumb_writer_scale_and_crop (GdkPixbuf *input_pixbuf,
        scaled_width = width;
        scaled_height = MIN (ceil (input_height*width_scale), height);
       } else if (width_scale > height_scale) {
-       scaled_width =MIN (ceil (input_width*height), width);
+       scaled_width =MIN (ceil (input_width*height_scale), width);
        scaled_height = height;
       } else {
        scaled_width = width;

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to