Hello community,

here is the log from the commit of package cairo for openSUSE:Factory checked 
in at 2020-03-01 21:25:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cairo (Old)
 and      /work/SRC/openSUSE:Factory/.cairo.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cairo"

Sun Mar  1 21:25:53 2020 rev:90 rq:779971 version:1.16.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/cairo/cairo.changes      2019-09-11 
10:20:38.195508952 +0200
+++ /work/SRC/openSUSE:Factory/.cairo.new.26092/cairo.changes   2020-03-01 
21:25:57.696306325 +0100
@@ -1,0 +2,7 @@
+Sun Feb 23 20:24:08 UTC 2020 - Martin Wilck <[email protected]>
+
+- Add an upstream bug fix
+  + cairo-pdf-add-missing-flush.patch: Fixes PDF generation
+    see https://gitlab.freedesktop.org/cairo/cairo/issues/342
+
+-------------------------------------------------------------------

New:
----
  cairo-pdf-add-missing-flush.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cairo.spec ++++++
--- /var/tmp/diff_new_pack.jprtTM/_old  2020-03-01 21:25:58.836308641 +0100
+++ /var/tmp/diff_new_pack.jprtTM/_new  2020-03-01 21:25:58.840308649 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package cairo
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -35,6 +35,8 @@
 Patch2:         cairo-Use-FT_Done_MM_Var-instead-of-free-when-available.patch
 # PATCH-FIX-UPSTREAM cairo-composite_color_glyphs.patch -- Fix a thinko in 
composite_color_glyphs
 Patch3:         cairo-composite_color_glyphs.patch
+# PATCH-FIX-UPSTREAM cairo-pdf-add-missing-flush.patch - fix pdf generation 
(upstream issue #342)
+Patch4:         cairo-pdf-add-missing-flush.patch
 
 BuildRequires:  gtk-doc
 BuildRequires:  pkgconfig

++++++ cairo-pdf-add-missing-flush.patch ++++++
>From 4c8813f0eaacc32c27126ad2296951a626300b89 Mon Sep 17 00:00:00 2001
From: Adrian Johnson <[email protected]>
Date: Thu, 25 Oct 2018 18:46:17 +1030
Subject: [PATCH] pdf: add missing flush

Issue #342
---
 src/cairo-pdf-surface.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/cairo-pdf-surface.c b/src/cairo-pdf-surface.c
index 7eb61aa..939b2d2 100644
--- a/src/cairo-pdf-surface.c
+++ b/src/cairo-pdf-surface.c
@@ -7711,6 +7711,11 @@ _cairo_pdf_surface_mask (void                    
*abstract_surface,
      * and most common, case to handle. */
     if (_cairo_pattern_is_constant_alpha (mask, &extents.bounded, &alpha) &&
        _can_paint_pattern (source)) {
+
+       status = _cairo_pdf_operators_flush (&surface->pdf_operators);
+       if (unlikely (status))
+           goto cleanup;
+
        _cairo_output_stream_printf (surface->output, "q\n");
        status = _cairo_pdf_surface_paint_pattern (surface,
                                                   op,
-- 
2.25.0


Reply via email to