summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2022-05-03 00:16:00 +0200
committerAlbert Astals Cid <aacid@kde.org>2022-05-03 00:16:00 +0200
commitac9b736c3f20704a41db9102589fa259abb26891 (patch)
treea3619e776e27f5cda687277924a072d6da809fd9
parent133d0b06c61fae2b1ad1cb4164d10eddba589049 (diff)
Fix rendering regression introduced in 5f915d46c99ecbc0c026b86de50f9e0243391a01
We can't assume "Fields" needs to exist, there's other things there like NeedAppearances that are valid without Fields The bug in Catalog::addFormToAcroForm remains, but will need to wait to get fixed on next release
-rw-r--r--poppler/Catalog.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/poppler/Catalog.cc b/poppler/Catalog.cc
index 6fbf2dcf..7a1e4095 100644
--- a/poppler/Catalog.cc
+++ b/poppler/Catalog.cc
@@ -104,12 +104,6 @@ Catalog::Catalog(PDFDoc *docA)
}
// get the AcroForm dictionary
acroForm = catDict.getDict()->lookup("AcroForm");
- if (acroForm.isDict()) {
- // We later assume the Fields Array exists, so check it does
- if (!acroForm.dictLookup("Fields").isArray()) {
- acroForm.setToNull();
- }
- }
// read base URI
Object obj = catDict.getDict()->lookupEnsureEncryptedIfNeeded("URI");