2005-04-05 Kristian Høgsberg <krh@redhat.com>
* backend/ev-page-cache.c (ev_page_cache_next_page):
* shell/ev-window.c (ev_window_cmd_go_next_page)
(ev_window_cmd_go_first_page): Fix of by one errors.
+2005-04-05 Kristian Høgsberg <krh@redhat.com>
+
+ * backend/ev-page-cache.c (ev_page_cache_next_page):
+ * shell/ev-window.c (ev_window_cmd_go_next_page)
+ (ev_window_cmd_go_first_page): Fix of by one errors.
+
2005-04-05 Marco Pesenti Gritti <mpg@redhat.com>
* ps/ps-document.c: (get_page_box):
{
g_return_val_if_fail (EV_IS_PAGE_CACHE (page_cache), FALSE);
- if (page_cache->current_page > page_cache->n_pages)
+ if (page_cache->current_page >= page_cache->n_pages)
return FALSE;
ev_page_cache_set_current_page (page_cache, page_cache->current_page + 1);
{
g_return_if_fail (EV_IS_WINDOW (ev_window));
- ev_page_cache_set_current_page (ev_window->priv->page_cache, 1);
+ ev_page_cache_set_current_page (ev_window->priv->page_cache, 0);
}
static void
g_return_if_fail (EV_IS_WINDOW (ev_window));
n_pages = ev_page_cache_get_n_pages (ev_window->priv->page_cache);
- ev_page_cache_set_current_page (ev_window->priv->page_cache, n_pages);
+ ev_page_cache_set_current_page (ev_window->priv->page_cache, n_pages - 1);
}
static void