diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-01-26 02:28:53 +0100 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-01-27 14:31:12 +0100 |
commit | 710d2e54f0762b7702640766d33b7e0977ba69de (patch) | |
tree | 580c55e980a62bed485399785dc45b3d7d7100f7 /qpdf/qpdf-ctest.c | |
parent | 823926f8bfff3a9fa8b93488b7d6a25da06719da (diff) | |
download | qpdf-710d2e54f0762b7702640766d33b7e0977ba69de.tar.zst |
Allow testing for subtype without specifying type in isDictionaryOfType etc
Accept empty string as type parameter in
QPDFObjectHandle::isDictionaryOfType and isStreamOfType
to allow for dictionaries with optional type.
Diffstat (limited to 'qpdf/qpdf-ctest.c')
-rw-r--r-- | qpdf/qpdf-ctest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpdf/qpdf-ctest.c b/qpdf/qpdf-ctest.c index 37225a22..e9a7f1a8 100644 --- a/qpdf/qpdf-ctest.c +++ b/qpdf/qpdf-ctest.c @@ -724,7 +724,7 @@ static void test25(char const* infile, assert(qpdf_oh_is_dictionary_of_type(qpdf, new_dict, "/Test", "/Marvin")); assert(! qpdf_oh_is_dictionary_of_type(qpdf, new_dict, "/Test2", "")); assert(! qpdf_oh_is_dictionary_of_type(qpdf, new_dict, "/Test", "/M")); - assert(! qpdf_oh_is_dictionary_of_type(qpdf, new_dict, "", "")); + assert(qpdf_oh_is_dictionary_of_type(qpdf, new_dict, "", "")); qpdf_oh new_array = qpdf_oh_new_array(qpdf); qpdf_oh_replace_or_remove_key( qpdf, new_dict, "/A", qpdf_oh_new_null(qpdf)); |