diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-12-12 15:40:22 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-12-12 15:40:22 (GMT) |
commit | a8bfdbfa5853ae05e66893e2f7968df0ed7f76ee (patch) | |
tree | a3a2896e8172781933ab94706b85b38966b3bbf0 | |
parent | 33d769c7d07e419cac3ab7b7febe98f2c12e2ecf (diff) |
[libdocument] Get document info after page sizes to take advantage of cache
Fixes 0x0 page size always shown in properties view.
-rw-r--r-- | libdocument/ev-document.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c index b770f10..4906851 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; |