Commit 3e86c9a5 authored by Albert Astals Cid's avatar Albert Astals Cid

Fix crash with some broken PDF files

parent 54209751
Pipeline #44927 passed with stage
in 33 minutes and 14 seconds
......@@ -1753,6 +1753,10 @@ void PDFGenerator::addTransition(Poppler::Page *pdfPage, Okular::Page *page)
QLinkedList<Okular::FormField *> PDFGenerator::getFormFields(Poppler::Page *popplerPage)
{
if (!popplerPage) {
return {};
}
const QList<Poppler::FormField *> popplerFormFields = popplerPage->formFields();
QLinkedList<Okular::FormField *> okularFormFields;
for (Poppler::FormField *f : popplerFormFields) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment