gtk+ r19536 - branches/gtk-2-12/gdk-pixbuf
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r19536 - branches/gtk-2-12/gdk-pixbuf
- Date: Tue, 12 Feb 2008 16:38:15 +0000 (GMT)
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]