summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-03-03 16:18:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-03-03 16:19:00 +0000
commitf3c4147883e3185b979c984f286d6898ced73f46 (patch)
tree7a2556397341ef9bb65232c076470205b36d2acc
parenttdf#95612: Print preview: page numbering starts with 1 (not 0) (diff)
downloadcore-f3c4147883e3185b979c984f286d6898ced73f46.tar.gz
core-f3c4147883e3185b979c984f286d6898ced73f46.zip
Resolves: tdf#106280 under X we get into the 'unlikely' non-image surface case
Change-Id: Idd83bbc96cbbb3fc7864ad587fc1ba8d78d1c93d
-rw-r--r--vcl/headless/svpgdi.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index e6380808fc03..91b6f86e87cb 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -1353,7 +1353,7 @@ void SvpSalGraphics::releaseCairoContext(cairo_t* cr, bool bXorModeAllowed, cons
unsigned char *target_surface_data = cairo_image_surface_get_data(target_surface);
unsigned char *xor_surface_data = cairo_image_surface_get_data(surface);
- cairo_format_t nFormat = cairo_image_surface_get_format(m_pSurface);
+ cairo_format_t nFormat = cairo_image_surface_get_format(target_surface);
assert(nFormat == CAIRO_FORMAT_ARGB32 && "need to implement CAIRO_FORMAT_A1 after all here");
sal_Int32 nStride = cairo_format_stride_for_width(nFormat, nWidth * m_fScale);
sal_Int32 nUnscaledExtentsLeft = nExtentsLeft * m_fScale;