]> git.pld-linux.org Git - packages/scribus.git/blame - poppler.patch
- fix building with poopler 21.03
[packages/scribus.git] / poppler.patch
CommitLineData
f6b85c6f
JR
1--- scribus-1.5.6.1/scribus/plugins/import/pdf/slaoutput.cpp~ 2020-11-14 23:37:11.000000000 +0100
2+++ scribus-1.5.6.1/scribus/plugins/import/pdf/slaoutput.cpp 2021-04-02 22:18:18.385332709 +0200
3@@ -2291,9 +2291,18 @@
4 return gTrue;\r
5 }\r
6 \r
7-GBool SlaOutputDev::tilingPatternFill(GfxState *state, Gfx * /*gfx*/, Catalog *cat, Object *str, POPPLER_CONST_070 double *pmat, int paintType, int tilingType, Dict *resDict, POPPLER_CONST_070 double *mat, POPPLER_CONST_070 double *bbox, int x0, int y0, int x1, int y1, double xStep, double yStep)\r
8+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(21, 3, 0)\r
9+bool SlaOutputDev::tilingPatternFill(GfxState *state, Gfx * /*gfx*/, Catalog *cat, GfxTilingPattern *tPat, const double *mat, int x0, int y0, int x1, int y1, double xStep, double yStep)\r
10+#else\r
11+GBool SlaOutputDev::tilingPatternFill(GfxState *state, Gfx * /*gfx*/, Catalog *cat, Object *str, POPPLER_CONST_070 double *pmat, int /*paintType*/, int /*tilingType*/, Dict *resDict, POPPLER_CONST_070 double *mat, POPPLER_CONST_070 double *bbox, int x0, int y0, int x1, int y1, double xStep, double yStep)\r
12+#endif\r
13 {\r
14 // qDebug() << "SlaOutputDev::tilingPatternFill";\r
15+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(21, 3, 0)\r
16+ const double *bbox = tPat->getBBox();\r
17+ const double *pmat = tPat->getMatrix();\r
18+ Dict *resDict = tPat->getResDict();\r
19+#endif\r
20 PDFRectangle box;\r
21 Gfx *gfx;\r
22 QString id;\r
23@@ -2325,7 +2334,11 @@
24 // Unset the clip path as it is unrelated to the pattern's coordinate space.\r
25 QPainterPath savedClip = m_currentClipPath;\r
26 m_currentClipPath = QPainterPath();\r
27+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(21, 3, 0)\r
28+ gfx->display(tPat->getContentStream());\r
29+#else\r
30 gfx->display(str);\r
31+#endif\r
32 m_currentClipPath = savedClip;\r
33 inPattern--;\r
34 gElements = m_groupStack.pop();\r
35--- scribus-1.5.6.1/scribus/plugins/import/pdf/slaoutput.h~ 2020-11-14 23:37:11.000000000 +0100
36+++ scribus-1.5.6.1/scribus/plugins/import/pdf/slaoutput.h 2021-04-02 22:15:19.594513556 +0200
37@@ -196,7 +196,11 @@
38 void stroke(GfxState *state) override;\r
39 void fill(GfxState *state) override;\r
40 void eoFill(GfxState *state) override;\r
41+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(21, 3, 0)\r
42+ bool tilingPatternFill(GfxState *state, Gfx *gfx, Catalog *cat, GfxTilingPattern *tPat, const double *mat, int x0, int y0, int x1, int y1, double xStep, double yStep) override;\r
43+#else\r
44 GBool tilingPatternFill(GfxState *state, Gfx *gfx, Catalog *cat, Object *str, POPPLER_CONST_070 double *pmat, int paintType, int tilingType, Dict *resDict, POPPLER_CONST_070 double *mat, POPPLER_CONST_070 double *bbox, int x0, int y0, int x1, int y1, double xStep, double yStep) override;\r
45+#endif\r
46 GBool functionShadedFill(GfxState * /*state*/, GfxFunctionShading * /*shading*/) override { qDebug() << "Function Shaded Fill"; return gFalse; }\r
47 GBool axialShadedFill(GfxState *state, GfxAxialShading *shading, double tMin, double tMax) override;\r
48 GBool axialShadedSupportExtend(GfxState *state, GfxAxialShading *shading) override { return (shading->getExtend0() == shading->getExtend1()); }\r
This page took 0.040359 seconds and 4 git commands to generate.