summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2019-04-26 17:12:41 +0200
committerCaolán McNamara <caolanm@redhat.com>2019-04-26 22:51:25 +0200
commit95e9b7b2d1a5bb6776eef89461b63ab3dc01f34f (patch)
tree1221df395962661f60bee1a74bd5e4e6a6ec0dfd /vcl
parentac419786b3244d909901db053841862abf5e7a2f (diff)
tdf#120797: Apply transformation also to the extents of damage
since 7034311dce663c895577267110baadbec312d491 affine transformation is passed down to drawPolyPolygon and drawPolyLine functions. The transformation was correctly applied to cairo context, but not the extents of damage so those had old, untransformed coordinates and were therefore not redrawn Change-Id: I61ce005ef8770ce5c4560a9d953cd92f440043be Reviewed-on: https://gerrit.libreoffice.org/71383 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/headless/svpgdi.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 2cf49ca17696..1c36f351b538 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -1144,6 +1144,9 @@ bool SvpSalGraphics::drawPolyLine(
fMiterMinimumAngle,
bPixelSnapHairline));
+ // if transformation has been applied, transform also extents (ranges)
+ // of damage so they can be correctly redrawn
+ aExtents.transform(rObjectToDevice);
releaseCairoContext(cr, false, aExtents);
return bRetval;
@@ -1491,6 +1494,9 @@ bool SvpSalGraphics::drawPolyPolygon(
cairo_stroke_preserve(cr);
}
+ // if transformation has been applied, transform also extents (ranges)
+ // of damage so they can be correctly redrawn
+ extents.transform(rObjectToDevice);
releaseCairoContext(cr, true, extents);
return true;