Package: dia
Version: 0.97.3+git20220525-4
Severity: wishlist
Tags: patch
X-Debbugs-Cc: [email protected]

Dear Maintainer,

I'm attaching a patch to fix the build with Poppler 22.09 and 22.12.

A build log[1] is available.

[1]: https://launchpad.net/~nteodosio/+archive/ubuntu/poppler/+build/24938080
Subject: Fix build with Poppler 22.09.
From: Nathan Pratta Teodosio <[email protected]>
Date: 14 Dec 2022 16:40:37 -0000

--- a/plug-ins/pdf/pdf-import.cpp.orig  2022-12-14 13:35:18.247693775 -0300
+++ b/plug-ins/pdf/pdf-import.cpp       2022-12-14 13:33:28.649959935 -0300
@@ -152,11 +152,11 @@
   void
   updateLineDash (GfxState *state)
   {
-    double *dashPattern;
     int dashLength;
     double dashStart;
 
-    state->getLineDash (&dashPattern, &dashLength, &dashStart);
+    std::vector<double> dashPattern = state->getLineDash(&dashStart);
+    dashLength = dashPattern.size();
     this->dash_length = dashLength ? dashPattern[0] * scale : 1.0;
 
     if (dashLength == 0)

Reply via email to