[gthumb] fixed the creation of the squared thumbnail



commit 9440dab4e11cb50d4367e90452bce11175f2dca5
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Fri Dec 31 19:21:40 2010 +0100

    fixed the creation of the squared thumbnail

 gthumb/pixbuf-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gthumb/pixbuf-utils.c b/gthumb/pixbuf-utils.c
index 69c8b73..8978f37 100644
--- a/gthumb/pixbuf-utils.c
+++ b/gthumb/pixbuf-utils.c
@@ -223,7 +223,7 @@ _gdk_pixbuf_scale_squared (GdkPixbuf     *p,
 		th = (int) (((double) h / w) * tw);
 	}
 
-	if ((tw > size) || (th > size))
+	if ((tw < w) || (th < h))
 		p1 = _gdk_pixbuf_scale_composite (p, tw, th, interp_type);
 	else
 		p1 = g_object_ref (p);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]