summaryrefslogtreecommitdiffstats
path: root/src/helper/png-write.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/png-write.cpp')
-rw-r--r--src/helper/png-write.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp
index 20870086a..fe7017d3e 100644
--- a/src/helper/png-write.cpp
+++ b/src/helper/png-write.cpp
@@ -339,6 +339,8 @@ sp_export_get_rows(guchar const **rows, void **to_free, int row, int num_rows, v
cairo_surface_t *s = cairo_image_surface_create_for_data(
px, CAIRO_FORMAT_ARGB32, ebp->width, num_rows, stride);
cairo_t *ct = cairo_create(s);
+ cairo_translate(ct, -bbox.x0, -bbox.y0);
+
ink_cairo_set_source_rgba32(ct, ebp->background);
cairo_set_operator(ct, CAIRO_OPERATOR_SOURCE);
cairo_paint(ct);