From: Carlos Garcia Campos Date: Mon, 19 Oct 2009 18:24:16 +0000 (+0200) Subject: [libdocument] Initialize max size to first page size X-Git-Tag: EVINCE_2_29_1~41 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=3f28adc16f40da7048d9693278ed2940aa1e39f0;p=evince.git [libdocument] Initialize max size to first page size --- diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c index 38c12f2f..985fe803 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;