empathy r1681 - trunk/libempathy-gtk



Author: xclaesse
Date: Tue Nov 11 15:26:22 2008
New Revision: 1681
URL: http://svn.gnome.org/viewvc/empathy?rev=1681&view=rev

Log:
Make empathy_pixbuf_scale_down_if_necessary treat 0 as "no limit"

Modified:
   trunk/libempathy-gtk/empathy-ui-utils.c

Modified: trunk/libempathy-gtk/empathy-ui-utils.c
==============================================================================
--- trunk/libempathy-gtk/empathy-ui-utils.c	(original)
+++ trunk/libempathy-gtk/empathy-ui-utils.c	Tue Nov 11 15:26:22 2008
@@ -500,7 +500,7 @@
 	width = gdk_pixbuf_get_width (pixbuf);
 	height = gdk_pixbuf_get_height (pixbuf);
 
-	if (width > max_size || height > max_size) {
+	if (width > 0 && (width > max_size || height > max_size)) {
 		factor = (gdouble) max_size / MAX (width, height);
 
 		width = width * factor;



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