[gimp/gimp-2-10] Issue #4919: PDF: Order of pages reversed when opening and closing.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] Issue #4919: PDF: Order of pages reversed when opening and closing.
- Date: Wed, 8 Apr 2020 18:14:13 +0000 (UTC)
commit f31f9b5e216704fc1275ae8c4f3e1de7f62982aa
Author: Jehan <jehan girinstud io>
Date: Wed Apr 8 20:08:00 2020 +0200
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.
(cherry picked from commit 809e79f37a8825f799a0affad028c6bba3264d0d)
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 cfb13cb5b6..b2c12fa5a6 100644
--- a/plug-ins/common/file-pdf-load.c
+++ b/plug-ins/common/file-pdf-load.c
@@ -1078,7 +1078,7 @@ load_image (PopplerDocument *doc,
surface = render_page_to_surface (page, width, height, scale, antialias);
- layer_from_surface (image_ID, page_label, i, surface,
+ layer_from_surface (image_ID, page_label, 0, surface,
doc_progress, 1.0 / pages->n_pages);
g_free (page_label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]