Fix build with poppler-25.10.0.

(default) ok by rsadowski@
This commit is contained in:
kili
2025-10-30 20:53:24 +00:00
parent 4d415e135e
commit c522e21628
@@ -0,0 +1,23 @@
Fix build with poppler-25.10.0.
Index: filters/karbon/pdf/SvgOutputDev.cpp
--- filters/karbon/pdf/SvgOutputDev.cpp.orig
+++ filters/karbon/pdf/SvgOutputDev.cpp
@@ -390,7 +390,7 @@ void SvgOutputDev::drawString(GfxState *state, const G
return;
// ignore empty strings
- if (s->getLength() == 0)
+ if (s->size() == 0)
return;
#if POPPLER_VERSION_MACRO < QT_VERSION_CHECK(22, 04, 0)
@@ -402,7 +402,7 @@ void SvgOutputDev::drawString(GfxState *state, const G
QString str;
const char *p = s->c_str();
- int len = s->getLength();
+ int len = s->size();
CharCode code;
const Unicode *u = nullptr;
int uLen;