pidgin/gtkutils.c

changeset 30053
223f898b44b2
parent 30002
cab5e4b11ed2
child 30054
82871fde0aac
--- a/pidgin/gtkutils.c	Tue Apr 20 21:17:12 2010 +0000
+++ b/pidgin/gtkutils.c	Wed Apr 21 04:42:32 2010 +0000
@@ -2507,7 +2507,7 @@
 		new_height = orig_height * scale_factor;
 		g_object_unref(G_OBJECT(pixbuf));
 		pixbuf = gdk_pixbuf_scale_simple(original, new_width, new_height, GDK_INTERP_HYPER);
-	} while (new_width > 10 || new_height > 10);
+	} while ((new_width > 10 || new_height > 10) && new_width > spec->min_width && new_height > spec->min_height);
 	g_strfreev(prpl_formats);
 	g_object_unref(G_OBJECT(pixbuf));
 	g_object_unref(G_OBJECT(original));

mercurial