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 /backend/ev-document-misc.c | |
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
Diffstat (limited to 'backend/ev-document-misc.c')
-rw-r--r-- | backend/ev-document-misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |