diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-05-18 00:10:51 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-05-18 00:10:51 +0100 |
commit | eccb70a7f91b2d22582587f26d1a28bb31408b45 (patch) | |
tree | 3223e1fd54201bcf4ebecac6fbe87361cbe643e2 /app-office/scribus/files | |
parent | a2810985afabcc31d3eace5e61d8ea25b852ba17 (diff) |
gentoo resync : 18.05.2019
Diffstat (limited to 'app-office/scribus/files')
-rw-r--r-- | app-office/scribus/files/scribus-1.5.5_pre20190429-poppler-0.76.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/app-office/scribus/files/scribus-1.5.5_pre20190429-poppler-0.76.patch b/app-office/scribus/files/scribus-1.5.5_pre20190429-poppler-0.76.patch new file mode 100644 index 000000000000..d62db93663ef --- /dev/null +++ b/app-office/scribus/files/scribus-1.5.5_pre20190429-poppler-0.76.patch @@ -0,0 +1,59 @@ +From aeea6a2ed4cb15ce8c35bb83066ef03e4e04b29b Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Thu, 2 May 2019 00:08:12 +0200 +Subject: [PATCH] Fix build with poppler-0.76 + +findPage(int num, int gen) -> findPage(const Ref ref) + +https://gitlab.freedesktop.org/poppler/poppler/commit/244c7d6926463b079b1f96e34d9e4451d352942e +--- + scribus/plugins/import/pdf/slaoutput.cpp | 12 ++++-------- + 1 file changed, 4 insertions(+), 8 deletions(-) + +diff --git a/scribus/plugins/import/pdf/slaoutput.cpp b/scribus/plugins/import/pdf/slaoutput.cpp +index fe9794a65..b25082de6 100644 +--- a/scribus/plugins/import/pdf/slaoutput.cpp ++++ b/scribus/plugins/import/pdf/slaoutput.cpp +@@ -429,8 +429,7 @@ bool SlaOutputDev::handleLinkAnnot(Annot* annota, double xCoor, double yCoor, do + {
+ if (dst->isPageRef())
+ {
+- Ref dstr = dst->getPageRef();
+- pagNum = pdfDoc->findPage(dstr.num, dstr.gen);
++ pagNum = pdfDoc->findPage(dst->getPageRef());
+ }
+ else
+ pagNum = dst->getPageNum();
+@@ -451,8 +450,7 @@ bool SlaOutputDev::handleLinkAnnot(Annot* annota, double xCoor, double yCoor, do + {
+ if (dstn->isPageRef())
+ {
+- Ref dstr = dstn->getPageRef();
+- pagNum = pdfDoc->findPage(dstr.num, dstr.gen);
++ pagNum = pdfDoc->findPage(dstn->getPageRef());
+ }
+ else
+ pagNum = dstn->getPageNum();
+@@ -931,8 +929,7 @@ void SlaOutputDev::handleActions(PageItem* ite, AnnotWidget *ano) + {
+ if (dst->isPageRef())
+ {
+- Ref dstr = dst->getPageRef();
+- pagNum = pdfDoc->findPage(dstr.num, dstr.gen);
++ pagNum = pdfDoc->findPage(dst->getPageRef());
+ }
+ else
+ pagNum = dst->getPageNum();
+@@ -955,8 +952,7 @@ void SlaOutputDev::handleActions(PageItem* ite, AnnotWidget *ano) + {
+ if (dstn->isPageRef())
+ {
+- Ref dstr = dstn->getPageRef();
+- pagNum = pdfDoc->findPage(dstr.num, dstr.gen);
++ pagNum = pdfDoc->findPage(dstn->getPageRef());
+ }
+ else
+ pagNum = dstn->getPageNum();
+-- +2.21.0 + |