commit | 199ccde44be1879bf5caa8bcbc050c1ef0327849 | [log] [tgz] |
---|---|---|
author | Nelson Benítez León <nbenitezl@gmail.com> | Sat Mar 09 00:48:59 2024 +0000 |
committer | Albert Astals Cid <aacid@kde.org> | Sun Mar 31 16:47:29 2024 +0000 |
tree | 7c3aa2025ff5486be873f0c79f6370e335630b8d | |
parent | 0d5431dba10c531b6e6897e088c1c6ccec84ef55 [diff] |
reset clipping path when the state is restored According to the specification, see NOTE 2 in https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf#G7.3882161 it appears that the clipping path should be reset when the restore (Q) operator is encountered. Fixes #739
diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc index f1c69b7..2db12d8 100644 --- a/poppler/Gfx.cc +++ b/poppler/Gfx.cc
@@ -5380,6 +5380,7 @@ state = state->restore(); out->restoreState(state); stackHeight--; + clip = clipNone; } // Create a new state stack, and initialize it with a copy of the