From 809e79f37a8825f799a0affad028c6bba3264d0d Mon Sep 17 00:00:00 2001 From: Jehan Date: Wed, 8 Apr 2020 20:08:00 +0200 Subject: [PATCH] Issue #4919: PDF: Order of pages reversed when opening and closing. Let's go with the logics "bottom layer is first", which is also the logics in animated formats. Hence changing the layer order on loading multi-page PDF. --- plug-ins/common/file-pdf-load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plug-ins/common/file-pdf-load.c b/plug-ins/common/file-pdf-load.c index 771f633597..531f5e1699 100644 --- a/plug-ins/common/file-pdf-load.c +++ b/plug-ins/common/file-pdf-load.c @@ -855,7 +855,7 @@ load_image (PopplerDocument *doc, surface = render_page_to_surface (page, width, height, scale, antialias); - layer_from_surface (image, page_label, i, surface, + layer_from_surface (image, page_label, 0, surface, doc_progress, 1.0 / pages->n_pages); g_free (page_label);