Don't let the width or height go below 1. (#516024, Christian Persch)

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)



svn path=/branches/gtk-2-12/; revision=19536
This commit is contained in:
Matthias Clasen
2008-02-12 16:38:15 +00:00
committed by Matthias Clasen
parent 2caa0a86ef
commit a21cbfc272
2 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
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)
2008-02-10 Matthias Clasen <mclasne@redhat.com>
* gdk-pixbuf-scaled-anim.c: Try harder to return pixbufs

View File

@@ -975,6 +975,9 @@ size_prepared_cb (GdkPixbufLoader *loader,
height = info->height;
}
width = MAX (width, 1);
height = MAX (height, 1);
gdk_pixbuf_loader_set_size (loader, width, height);
}