]> www.fi.muni.cz Git - evince.git/commitdiff
Fix crash when loading documents with only one page.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 18 Feb 2007 15:48:05 +0000 (15:48 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 18 Feb 2007 15:48:05 +0000 (15:48 +0000)
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

ChangeLog
shell/ev-window.c

index 08b37b5bbea9217dfa49facb80b5d24f5fec3b6c..905792eab6fc9102102dced20aa6bde10f12fdae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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. 
+
 2007-02-16  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * backend/dvi/dvi-document.c:
index ab14e27183fd4f3328886853bbe039434c54712a..30f2c20c4f3a7cdf2fce209bf13f9d9e296e71a6 100644 (file)
@@ -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;