From 0af88c686484494eb9b35e3d847c431408cee727 Mon Sep 17 00:00:00 2001 From: Nicolas PARLANT Date: Thu, 8 Jan 2026 23:21:39 +0100 Subject: [PATCH] pdf-import: fix poppler-26 Signed-off-by: Nicolas PARLANT --- plug-ins/pdf/pdf-import.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plug-ins/pdf/pdf-import.cpp b/plug-ins/pdf/pdf-import.cpp index 79e2fcaae..fbb372847 100644 --- a/plug-ins/pdf/pdf-import.cpp +++ b/plug-ins/pdf/pdf-import.cpp @@ -904,7 +904,11 @@ DiaOutputDev::drawImage (GfxState *state, unsigned char *pixels = gdk_pixbuf_get_pixels (pixbuf); int y; +#if POPPLER_VERSION_MAJOR > 25 + imgStr.rewind(); // otherwise getLine() is crashing right away +#else imgStr.reset(); // otherwise getLine() is crashing right away +#endif line = imgStr.getLine (); for (y = 0; y < height && line; ++y) { unsigned char *dest = pixels + y * rowstride; -- GitLab