aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFPageDocumentHelper.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2021-02-26 20:47:52 +0100
committerJay Berkenbilt <ejb@ql.org>2021-03-03 23:05:19 +0100
commitfa2516df712aa59eb414933a912d30bb6fa1606e (patch)
tree776307a8d4e513e0a8bcd6fdb586a1b8b722fcd1 /libqpdf/QPDFPageDocumentHelper.cc
parent5207c3da713f242506aeb4889b97ced362b13bdf (diff)
downloadqpdf-fa2516df712aa59eb414933a912d30bb6fa1606e.tar.zst
Fix behavior for finding /Q, /DA, and /DR for form fields
If not found in the field hierarchy, /Q and /DA are supposed to be looked up in the document-level form dictionary. /DR is supposed to only come from the document dictionary.
Diffstat (limited to 'libqpdf/QPDFPageDocumentHelper.cc')
-rw-r--r--libqpdf/QPDFPageDocumentHelper.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libqpdf/QPDFPageDocumentHelper.cc b/libqpdf/QPDFPageDocumentHelper.cc
index 048319f5..74b21e82 100644
--- a/libqpdf/QPDFPageDocumentHelper.cc
+++ b/libqpdf/QPDFPageDocumentHelper.cc
@@ -148,8 +148,7 @@ QPDFPageDocumentHelper::flattenAnnotationsForPage(
"/Resources", as_resources.shallowCopy());
as_resources = as.getDict().getKey("/Resources");
}
- as_resources.mergeResources(
- ff.getInheritableFieldValue("/DR"));
+ as_resources.mergeResources(ff.getDefaultResources());
}
else
{