[Libreoffice-commits] core.git: vcl/headless
Caolán McNamara
caolanm at redhat.com
Sun Jan 31 13:49:45 PST 2016
vcl/headless/svpgdi.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 749c5a08016a0384686caab7528f3c8adc51fdc6
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Jan 31 21:40:54 2016 +0000
use feeble fallback for older cairo
Change-Id: I93f394575d9afa8eac50a5a7bb36453ae01675ff
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 27f6afa..74fd4d8 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -798,9 +798,14 @@ bool SvpSalGraphics::drawPolyLine(
aEdge.setB2DPoint(0, aEdge.getB2DPoint(1));
}
+#if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 10, 0)
cairo_region_t* pRegion = cairo_region_create_rectangles(aExtents.data(), aExtents.size());
cairo_region_get_extents(pRegion, &extents);
cairo_region_destroy(pRegion);
+#else
+ if (!aExtents.empty())
+ extents = aExtents[0];
+#endif
}
releaseCairoContext(cr, false, extents);
More information about the Libreoffice-commits
mailing list