diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2005-06-01 09:23:33 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-06-01 09:23:33 (GMT) |
commit | cd560e985cebb01c854246c6fed205261f7d8db9 (patch) | |
tree | 39f8509cdbc0d88a09de463391510af18dac96fa | |
parent | e45c8579cc1dbe6e3d358f03e2e732ff64762121 (diff) |
Pages can be 0 x 0, dont assert on this case
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
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | backend/ev-document-misc.c | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -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), 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, |