[Libreoffice-commits] core.git: vcl/headless

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 9 15:57:35 UTC 2019


 vcl/headless/svpgdi.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit eec93ec31fc9bb9daeb4574dccdd3f1bd35b60d3
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Aug 9 14:42:54 2019 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Aug 9 17:56:24 2019 +0200

    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/77206
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx
index 9eb040b46eee..26fe0651d7d3 100644
--- a/vcl/headless/svpgdi.cxx
+++ b/vcl/headless/svpgdi.cxx
@@ -1476,7 +1476,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(cr);
     }


More information about the Libreoffice-commits mailing list