From cd560e985cebb01c854246c6fed205261f7d8db9 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Wed, 01 Jun 2005 09:23:33 +0000 Subject: Pages can be 0 x 0, dont assert on this case 2005-06-01 Marco Pesenti Gritti * backend/ev-document-misc.c: (ev_document_misc_get_thumbnail_frame): Pages can be 0 x 0, dont assert on this case --- diff --git a/ChangeLog b/ChangeLog index 693fe22..7ba9a9c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-06-01 Marco Pesenti Gritti + + * 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 * shell/ev-sidebar-links.c: (ev_sidebar_links_dispose), diff --git a/backend/ev-document-misc.c b/backend/ev-document-misc.c index bb5eedb..0626e13 100644 --- a/backend/ev-document-misc.c +++ b/backend/ev-document-misc.c @@ -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, -- cgit v0.9.1