summaryrefslogtreecommitdiff
path: root/app-office/dia/files/dia-0.98-fix_poppler_2510.patch
blob: fa521d37175942c6207d699321766d0fc18c39c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
fix compile with >=poppler-25.10
see https://bugs.gentoo.org/965768
reported https://gitlab.gnome.org/GNOME/dia/-/issues/572
--- a/plug-ins/pdf/pdf-import.cpp
+++ b/plug-ins/pdf/pdf-import.cpp
@@ -776,7 +776,11 @@ void
 DiaOutputDev::drawString(GfxState *state, GooString *s)
 {
   Color text_color = this->fill_color;
-  int len = s->getLength();
+#if POPPLER_VERSION_MAJOR > 25 || (POPPLER_VERSION_MAJOR == 25 && POPPLER_VERSION_MINOR >= 10)
+  int len = s->size();
+#else
+  int len = s->getLength();
+#endif
   DiaObject *obj;
   gchar *utf8 = NULL;
   DiaFont *font;