diff options
author | Jonathan Blandford <jrb@redhat.com> | 2005-07-30 03:15:20 (GMT) |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2005-07-30 03:15:20 (GMT) |
commit | c1ecd5af7022d14f69151860508d9603afa4e3af (patch) | |
tree | 50b69cd466a0cc1ee439a3b18fc7fe9716c4b16f /shell/ev-page-cache.c | |
parent | ff551a74825c4174486df1932f65dab463ed686a (diff) |
Handle n_pages == 0, fixes #310306.
Fri Jul 29 23:14:28 2005 Jonathan Blandford <jrb@redhat.com>
* shell/ev-page-cache.c: (ev_page_cache_new):
* shell/ev-window.c: (update_action_sensitivity): Handle n_pages
== 0, fixes #310306.
Diffstat (limited to 'shell/ev-page-cache.c')
-rw-r--r-- | shell/ev-page-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-page-cache.c b/shell/ev-page-cache.c index c39053a..eb88ed9 100644 --- a/shell/ev-page-cache.c +++ b/shell/ev-page-cache.c @@ -261,7 +261,7 @@ ev_page_cache_new (EvDocument *document) /* make some sanity check assertions */ if (! page_cache->uniform) g_assert (page_cache->size_cache != NULL); - if (page_cache->uniform) + if (page_cache->uniform && page_cache->n_pages > 0) g_assert (page_cache->uniform_width > 0 && page_cache->uniform_height > 0); ev_document_doc_mutex_unlock (); |