]> www.fi.muni.cz Git - evince.git/commitdiff
[libdocument] Get document info after page sizes to take advantage of cache
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 12 Dec 2009 15:40:22 +0000 (16:40 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 12 Dec 2009 15:40:22 +0000 (16:40 +0100)
Fixes 0x0 page size always shown in properties view.

libdocument/ev-document.c

index b770f1092f34ee2dd73992dbd5fc798dbf0d0e84..4906851526e061e0c9d09ce743b12d9406725312 100644 (file)
@@ -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;