[gthumb] fixed the creation of the squared thumbnail
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] fixed the creation of the squared thumbnail
- Date: Fri, 31 Dec 2010 18:56:30 +0000 (UTC)
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]