blob: 40d5f7300ad8ce77ece233ad1392cba20938c4f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
PR merged https://gitlab.gnome.org/GNOME/dia/-/merge_requests/143
see https://bugs.gentoo.org/970103
fix compile with >=poppler-26.02
--- a/plug-ins/pdf/pdf-import.cpp
+++ b/plug-ins/pdf/pdf-import.cpp
@@ -120,7 +120,11 @@ public :
return FALSE;
}
//! Apparently no effect at all - so we translate everything to Dia space ouself
+#if POPPLER_VERSION_MAJOR > 26 || (POPPLER_VERSION_MAJOR == 26 && POPPLER_VERSION_MINOR >= 2)
+ void setDefaultCTM(const std::array<double, 6> &ctm)
+#else
void setDefaultCTM(double *ctm)
+#endif
{
DiaMatrix mat;
@@ -879,7 +883,7 @@ DiaOutputDev::drawImage (GfxState *state,
GdkPixbuf *pixbuf;
Point pos;
DiaObjectChange *change;
- const double *ctm = state->getCTM();
+ const auto ctm = state->getCTM();
pos.x = ctm[4] * scale;
// there is some undocumented magic done with the ctm for drawImage
|