Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-02-18 15:48:05 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-02-18 15:48:05 (GMT)
commit7f37457cb7300977777fa712e0f1562e90be2aa2 (patch)
tree6cdb468fd404ef40095477a79d1861c0c35311fe /shell
parente65545ed92b9730744a4ac5e34e05a8f216fd24b (diff)
Fix crash when loading documents with only one page.
2007-02-18 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-window.c: (ev_window_setup_document): Fix crash when loading documents with only one page. svn path=/trunk/; revision=2335
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index ab14e27..30f2c20 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;