forked from pool/xournalpp
a4431c7b74
- Add xournalpp-fix-exporting-pdf-with-references.patch: Fix PDF export when references exist in the document [gh#xournalpp/xournalpp#2236]. OBS-URL: https://build.opensuse.org/request/show/835570 OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xournalpp?expand=0&rev=21
24 lines
955 B
Diff
24 lines
955 B
Diff
From 053c74842a0292223e36fe4e132a6b7e5908d98d Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Fabian=20Ke=C3=9Fler?= <fabian_kessler@gmx.de>
|
|
Date: Sun, 13 Sep 2020 23:00:50 +0200
|
|
Subject: [PATCH] Fixes 1.0.18 PDF export bug, when references exist in the
|
|
document. - Regression - fixes #2236
|
|
|
|
---
|
|
src/pdf/popplerapi/PopplerGlibAction.cpp | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/pdf/popplerapi/PopplerGlibAction.cpp b/src/pdf/popplerapi/PopplerGlibAction.cpp
|
|
index b1c83c5ec5..31b0df3e60 100644
|
|
--- a/src/pdf/popplerapi/PopplerGlibAction.cpp
|
|
+++ b/src/pdf/popplerapi/PopplerGlibAction.cpp
|
|
@@ -60,7 +60,7 @@ void PopplerGlibAction::linkFromDest(LinkDestination* link, PopplerDest* pDest)
|
|
break;
|
|
case POPPLER_DEST_XYZ:
|
|
{
|
|
- PopplerPage* page = poppler_document_get_page(document, pDest->page_num);
|
|
+ PopplerPage* page = poppler_document_get_page(document, pDest->page_num - 1);
|
|
if (page == NULL)
|
|
{
|
|
return;
|