From 7f37457cb7300977777fa712e0f1562e90be2aa2 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 18 Feb 2007 15:48:05 +0000 Subject: [PATCH] Fix crash when loading documents with only one page. 2007-02-18 Carlos Garcia Campos * shell/ev-window.c: (ev_window_setup_document): Fix crash when loading documents with only one page. svn path=/trunk/; revision=2335 --- ChangeLog | 6 ++++++ shell/ev-window.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 08b37b5b..905792ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-02-18 Carlos Garcia Campos + + * shell/ev-window.c: (ev_window_setup_document): + + Fix crash when loading documents with only one page. + 2007-02-16 Carlos Garcia Campos * backend/dvi/dvi-document.c: diff --git a/shell/ev-window.c b/shell/ev-window.c index ab14e271..30f2c20c 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1073,7 +1073,7 @@ ev_window_setup_document (EvWindow *ev_window) ev_window_clear_thumbnail_job (ev_window); ev_page_cache_get_size (ev_window->priv->page_cache, - 1, 0, 1.0, + 0, 0, 1.0, &page_width, &page_height); scale = (gdouble)128 / (gdouble)page_width; -- 2.43.5