From c522e21628232e152a5b1fe3931370246e575fcf Mon Sep 17 00:00:00 2001 From: kili Date: Thu, 30 Oct 2025 20:53:24 +0000 Subject: [PATCH] Fix build with poppler-25.10.0. (default) ok by rsadowski@ --- .../patch-filters_karbon_pdf_SvgOutputDev_cpp | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 editors/calligra/patches/patch-filters_karbon_pdf_SvgOutputDev_cpp diff --git a/editors/calligra/patches/patch-filters_karbon_pdf_SvgOutputDev_cpp b/editors/calligra/patches/patch-filters_karbon_pdf_SvgOutputDev_cpp new file mode 100644 index 00000000000..bae53a07394 --- /dev/null +++ b/editors/calligra/patches/patch-filters_karbon_pdf_SvgOutputDev_cpp @@ -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;