From: Carlos Garcia Campos Date: Sat, 12 Dec 2009 15:40:22 +0000 (+0100) Subject: [libdocument] Get document info after page sizes to take advantage of cache X-Git-Tag: EVINCE_2_29_4~19 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=a8bfdbfa5853ae05e66893e2f7968df0ed7f76ee;p=evince.git [libdocument] Get document info after page sizes to take advantage of cache Fixes 0x0 page size always shown in properties view. --- diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c index b770f109..49068515 100644 --- a/libdocument/ev-document.c +++ b/libdocument/ev-document.c @@ -248,7 +248,6 @@ ev_document_load (EvDocument *document, */ priv->uri = g_strdup (uri); priv->n_pages = _ev_document_get_n_pages (document); - priv->info = _ev_document_get_info (document); for (i = 0; i < priv->n_pages; i++) { EvPage *page = ev_document_get_page (document, i); @@ -312,6 +311,8 @@ ev_document_load (EvDocument *document, g_object_unref (page); } + + priv->info = _ev_document_get_info (document); } return retval;