diff options
Diffstat (limited to 'libqpdf/QPDFObjectHandle.cc')
-rw-r--r-- | libqpdf/QPDFObjectHandle.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libqpdf/QPDFObjectHandle.cc b/libqpdf/QPDFObjectHandle.cc index 221ecd1d..e7d84b4c 100644 --- a/libqpdf/QPDFObjectHandle.cc +++ b/libqpdf/QPDFObjectHandle.cc @@ -1949,15 +1949,10 @@ QPDFObjectHandle::parseContentStream_internal( pipeContentStreams(&buf, description, all_description); PointerHolder<Buffer> stream_data = buf.getBuffer(); callbacks->contentSize(stream_data->getSize()); - QPDF* context = getOwningQPDF(); - if ((! context) && isArray() && (getArrayNItems() > 0)) - { - context = getArrayItem(0).getOwningQPDF(); - } try { parseContentStream_data(stream_data, all_description, - callbacks, context); + callbacks, getOwningQPDF()); } catch (TerminateParsing&) { |