From: Carlos Garcia Campos Date: Sun, 18 Feb 2007 15:48:05 +0000 (+0000) Subject: Fix crash when loading documents with only one page. X-Git-Tag: EVINCE_0_8_0~41 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=7f37457cb7300977777fa712e0f1562e90be2aa2;p=evince.git 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 --- 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;