gtk+ r19534 - trunk/gdk-pixbuf
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r19534 - trunk/gdk-pixbuf
- Date: Tue, 12 Feb 2008 16:35:02 +0000 (GMT)
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]