Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libdocument/ev-document.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c
index 38c12f2..985fe80 100644
--- a/libdocument/ev-document.c
+++ b/libdocument/ev-document.c
@@ -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;