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

New commits:
commit c138ec620b5084348dc892bf9fd8228ed098970a
Author: Oliver Sander <[email protected]>
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,
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to