diff options
author | Nelson Benítez León <nbenitezl@gmail.com> | 2024-03-09 00:48:59 +0000 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2024-03-31 16:47:29 +0000 |
commit | 199ccde44be1879bf5caa8bcbc050c1ef0327849 (patch) | |
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
-rw-r--r-- | poppler/Gfx.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/poppler/Gfx.cc b/poppler/Gfx.cc index f1c69b7c..2db12d88 100644 --- a/poppler/Gfx.cc +++ b/poppler/Gfx.cc @@ -5380,6 +5380,7 @@ void Gfx::restoreState() state = state->restore(); out->restoreState(state); stackHeight--; + clip = clipNone; } // Create a new state stack, and initialize it with a copy of the |