]> www.fi.muni.cz Git - evince.git/commitdiff
[libdocument] Initialize max size to first page size
authorCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 19 Oct 2009 18:24:16 +0000 (20:24 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 19 Oct 2009 18:28:47 +0000 (20:28 +0200)
libdocument/ev-document.c

index 38c12f2fd92f15688bd52a16e25571cde2a3ded7..985fe8032417b963a39ca1253031abee1e7f6bed 100644 (file)
@@ -262,6 +262,8 @@ ev_document_load (EvDocument  *document,
                        if (i == 0) {
                                priv->uniform_width = page_width;
                                priv->uniform_height = page_height;
+                               priv->max_width = priv->uniform_width;
+                               priv->max_height = priv->uniform_height;
                        } else if (priv->uniform &&
                                   (priv->uniform_width != page_width ||
                                    priv->uniform_height != page_height)) {
@@ -310,11 +312,6 @@ ev_document_load (EvDocument  *document,
 
                        g_object_unref (page);
                }
-
-               if (priv->uniform) {
-                       priv->max_width = priv->uniform_width;
-                       priv->max_height = priv->uniform_height;
-               }
        }
 
        return retval;