summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-08-09 14:42:54 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2019-08-13 12:34:26 +0200
commitd618641195b9e0cf3f6fa1b4e6c1ffa1616b814e (patch)
tree021a2913708f822faa39d7165b03c216f334b457 /vcl
parent05b79e965481893ef7ffdbf4c6a77d90aeb68b20 (diff)
Resolves: tdf#122358 ensure right/bottom borders are included in damage region
a simple safely backportable expand of damage region by one pixel Change-Id: If4d226d8546d55b00172d826c8816b09b55d54ef Reviewed-on: https://gerrit.libreoffice.org/77209 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/headless/svpgdi.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index c8f179bd0066..c8bc89160c3a 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -1461,7 +1461,12 @@ bool SvpSalGraphics::drawPolyPolygon(
applyColor(cr, m_aLineColor, fTransparency);
// expand with possible StrokeDamage
- extents.expand(getClippedStrokeDamage(cr));
+ basegfx::B2DRange stroke_extents = getClippedStrokeDamage(cr);
+ // tdf#122358 for a simple fix, just expand damage extents by 1 for now
+ // just results in expanding by one pixel the area to copy to the final
+ // surface
+ stroke_extents.grow(1);
+ extents.expand(stroke_extents);
cairo_stroke_preserve(cr);
}