gtk+ r19534 - trunk/gdk-pixbuf



Author: matthiasc
Date: Tue Feb 12 16:35:02 2008
New Revision: 19534
URL: http://svn.gnome.org/viewvc/gtk+?rev=19534&view=rev

Log:
2008-02-12  Matthias Clasen  <mclasne redhat com>

        * gdk-pixbuf-io.c (at_scale_size_prepared_cb): Don't let
        the width or height go below 1.  (#516024, Christian Persch)




Modified:
   trunk/gdk-pixbuf/ChangeLog
   trunk/gdk-pixbuf/gdk-pixbuf-io.c

Modified: trunk/gdk-pixbuf/gdk-pixbuf-io.c
==============================================================================
--- trunk/gdk-pixbuf/gdk-pixbuf-io.c	(original)
+++ trunk/gdk-pixbuf/gdk-pixbuf-io.c	Tue Feb 12 16:35:02 2008
@@ -1048,6 +1048,9 @@
 			height = info->height;
 	}
 	
+	width = MAX (width, 1);
+        height = MAX (height, 1);
+
 	gdk_pixbuf_loader_set_size (loader, width, height);
 }
 



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