Hello community, here is the log from the commit of package xournalpp for openSUSE:Factory checked in at 2020-09-21 17:45:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/xournalpp (Old) and /work/SRC/openSUSE:Factory/.xournalpp.new.4249 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "xournalpp" Mon Sep 21 17:45:36 2020 rev:9 rq:835809 version:1.0.18 Changes: -------- --- /work/SRC/openSUSE:Factory/xournalpp/xournalpp.changes 2020-07-17 20:51:42.324973820 +0200 +++ /work/SRC/openSUSE:Factory/.xournalpp.new.4249/xournalpp.changes 2020-09-21 17:48:16.301187159 +0200 @@ -1,0 +2,7 @@ +Sat Sep 19 14:27:53 UTC 2020 - Atri Bhattacharya <badshah...@gmail.com> + +- Add xournalpp-fix-exporting-pdf-with-references.patch: Fix PDF + export when references exist in the document + [gh#xournalpp/xournalpp#2236]. + +------------------------------------------------------------------- New: ---- xournalpp-fix-exporting-pdf-with-references.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ xournalpp.spec ++++++ --- /var/tmp/diff_new_pack.FVtQFa/_old 2020-09-21 17:48:21.941192474 +0200 +++ /var/tmp/diff_new_pack.FVtQFa/_new 2020-09-21 17:48:21.945192478 +0200 @@ -26,6 +26,8 @@ Source0: https://github.com/xournalpp/xournalpp/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz # PATCH-FIX-UPSTREAM xournalpp-fix-desktop-categories.patch badshah...@gmail.com -- Fix desktop categories with additional keywords to prevent "No sufficient Category definition" error from brp-desktop. Patch0: xournalpp-fix-desktop-categories.patch +# PATCH-FIX-UPSTREAM xournalpp-fix-exporting-pdf-with-references.patch gh#xournalpp/xournalpp#2236 badshah...@gmail.com -- Fix PDF export when references exist in the document. +Patch1: xournalpp-fix-exporting-pdf-with-references.patch BuildRequires: cmake BuildRequires: fdupes BuildRequires: gcc-c++ @@ -52,6 +54,7 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %cmake ++++++ xournalpp-fix-exporting-pdf-with-references.patch ++++++ >From 053c74842a0292223e36fe4e132a6b7e5908d98d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Ke=C3=9Fler?= <fabian_kess...@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;