Commit 3f28adc1 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

[libdocument] Initialize max size to first page size

parent c776b09c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment