]> www.fi.muni.cz Git - evince.git/commitdiff
Pages can be 0 x 0, dont assert on this case
authorMarco Pesenti Gritti <mpg@redhat.com>
Wed, 1 Jun 2005 09:23:33 +0000 (09:23 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Wed, 1 Jun 2005 09:23:33 +0000 (09:23 +0000)
2005-06-01  Marco Pesenti Gritti <mpg@redhat.com>

        * backend/ev-document-misc.c:
        (ev_document_misc_get_thumbnail_frame):

        Pages can be 0 x 0, dont assert on this case

ChangeLog
backend/ev-document-misc.c

index 693fe22e63c7b2f7b0b932b5e01f686e7f37571c..7ba9a9cbd804c60dd35bac65f6a73f247144b361 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-06-01  Marco Pesenti Gritti <mpg@redhat.com>
+
+       * backend/ev-document-misc.c:
+       (ev_document_misc_get_thumbnail_frame):
+
+       Pages can be 0 x 0, dont assert on this case
+
 2005-05-31  Marco Pesenti Gritti <mpg@redhat.com>
 
        * shell/ev-sidebar-links.c: (ev_sidebar_links_dispose),
index bb5eedbfe64eefae5afe66e0e6e4a78049cfa11a..0626e1372567de9cf71fba781a1dc001661907d3 100644 (file)
@@ -28,7 +28,7 @@ ev_document_misc_get_thumbnail_frame (int        width,
        }
 
        /* make sure no one is passing us garbage */
-       g_assert (width > 0 && height > 0);
+       g_assert (width >= 0 && height >= 0);
 
        retval = gdk_pixbuf_new (GDK_COLORSPACE_RGB,
                                 TRUE, 8,