summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci/ignore-ps2-argb32.txt1
-rw-r--r--.gitlab-ci/ignore-ps3-argb32.txt1
-rw-r--r--src/cairo-ps-surface.c2
3 files changed, 3 insertions, 1 deletions
diff --git a/.gitlab-ci/ignore-ps2-argb32.txt b/.gitlab-ci/ignore-ps2-argb32.txt
index a2eb631e0..75c599fc4 100644
--- a/.gitlab-ci/ignore-ps2-argb32.txt
+++ b/.gitlab-ci/ignore-ps2-argb32.txt
@@ -161,6 +161,7 @@ rounded-rectangle-fill
rounded-rectangle-stroke
scale-offset-image
scale-offset-similar
+self-copy-overlap
stroke-ctm-caps
stroke-clipped
stroke-image
diff --git a/.gitlab-ci/ignore-ps3-argb32.txt b/.gitlab-ci/ignore-ps3-argb32.txt
index ee227c8f7..9e433d5c3 100644
--- a/.gitlab-ci/ignore-ps3-argb32.txt
+++ b/.gitlab-ci/ignore-ps3-argb32.txt
@@ -172,6 +172,7 @@ rounded-rectangle-fill
rounded-rectangle-stroke
scale-offset-image
scale-offset-similar
+self-copy-overlap
stroke-ctm-caps
stroke-clipped
stroke-image
diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c
index 5645aae4a..343a5ea05 100644
--- a/src/cairo-ps-surface.c
+++ b/src/cairo-ps-surface.c
@@ -3713,11 +3713,11 @@ _cairo_ps_surface_emit_surface (cairo_ps_surface_t *surface,
status = _cairo_memory_stream_destroy (surface->stream, &data, &length);
free (data);
+ surface->stream = old_stream;
if (unlikely (status))
return status;
params->approx_size = length;
- surface->stream = old_stream;
_cairo_pdf_operators_set_stream (&surface->pdf_operators,
surface->stream);
}