Bugfix: Clear operand stack, when we are drawing forms

This commit is contained in:
Jakub Melka
2019-08-24 14:55:26 +02:00
parent 23a36f14a4
commit d6d112667d
2 changed files with 3 additions and 1 deletions

View File

@ -2066,6 +2066,9 @@ void PDFPageContentProcessor::paintXObjectImage(const PDFStream* stream)
void PDFPageContentProcessor::operatorPaintXObject(PDFPageContentProcessor::PDFOperandName name)
{
// We want to have empty operands, when we are invoking forms
m_operands.clear();
if (m_xobjectDictionary)
{
// According to the specification, XObjects are skipped entirely, as no operator was invoked.