GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

Commit a8bfdbfa authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

[libdocument] Get document info after page sizes to take advantage of cache

Fixes 0x0 page size always shown in properties view.
parent 33d769c7
......@@ -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;
......
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