gtk+ r19536 - branches/gtk-2-12/gdk-pixbuf



Author: matthiasc
Date: Tue Feb 12 16:38:15 2008
New Revision: 19536
URL: http://svn.gnome.org/viewvc/gtk+?rev=19536&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:
   branches/gtk-2-12/gdk-pixbuf/ChangeLog
   branches/gtk-2-12/gdk-pixbuf/gdk-pixbuf-io.c

Modified: branches/gtk-2-12/gdk-pixbuf/gdk-pixbuf-io.c
==============================================================================
--- branches/gtk-2-12/gdk-pixbuf/gdk-pixbuf-io.c	(original)
+++ branches/gtk-2-12/gdk-pixbuf/gdk-pixbuf-io.c	Tue Feb 12 16:38:15 2008
@@ -975,6 +975,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]