[poppler] qt5/src

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Dec 18 23:45:37 UTC 2017


 qt5/src/ArthurOutputDev.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit c138ec620b5084348dc892bf9fd8228ed098970a
Author: Oliver Sander <oliver.sander at tu-dresden.de>
Date:   Tue Nov 28 16:40:40 2017 +0100

    Arthur: 'clip' should intersect new and old clipping path
    
    Previously, the 'clip' method of the ArthurOutputDev class
    replaced the current clipping path with the one given in
    the GfxState variable.  However, the expected behavior is
    to intersect the new path with the old one, and use the
    result as the new clipping path.

diff --git a/qt5/src/ArthurOutputDev.cc b/qt5/src/ArthurOutputDev.cc
index 0ec029f2..8053396f 100644
--- a/qt5/src/ArthurOutputDev.cc
+++ b/qt5/src/ArthurOutputDev.cc
@@ -635,12 +635,12 @@ void ArthurOutputDev::eoFill(GfxState *state)
 
 void ArthurOutputDev::clip(GfxState *state)
 {
-  m_painter->setClipPath(convertPath( state, state->getPath(), Qt::WindingFill ) );
+  m_painter->setClipPath(convertPath( state, state->getPath(), Qt::WindingFill ), Qt::IntersectClip );
 }
 
 void ArthurOutputDev::eoClip(GfxState *state)
 {
-  m_painter->setClipPath(convertPath( state, state->getPath(), Qt::OddEvenFill ) );
+  m_painter->setClipPath(convertPath( state, state->getPath(), Qt::OddEvenFill ), Qt::IntersectClip );
 }
 
 void ArthurOutputDev::drawChar(GfxState *state, double x, double y,


More information about the poppler mailing list