[evince/Handle-reset-form-action: 13/13] Check poppler version when resetting form
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/Handle-reset-form-action: 13/13] Check poppler version when resetting form
- Date: Sun, 30 Aug 2020 15:28:08 +0000 (UTC)
commit 4e910b5835226eddb1bffb1dee4f57c7235ef952
Author: Marek Kasik <mkasik redhat com>
Date: Wed Jul 22 17:31:47 2020 +0200
Check poppler version when resetting form
Check for poppler 0.90.0 or higher when calling its
methods for resetting of forms.
Issue #46
backend/pdf/ev-poppler.cc | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index efffef0b..551b37a0 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -1721,6 +1721,7 @@ ev_link_from_action (PdfDocument *pdf_document,
case POPPLER_ACTION_JAVASCRIPT:
unimplemented_action = "POPPLER_ACTION_JAVASCRIPT";
break;
+#if POPPLER_CHECK_VERSION(0, 90, 0)
case POPPLER_ACTION_RESET_FORM: {
gboolean exclude_reset_fields;
GList *reset_fields = NULL;
@@ -1736,6 +1737,7 @@ ev_link_from_action (PdfDocument *pdf_document,
exclude_reset_fields);
break;
}
+#endif
case POPPLER_ACTION_UNKNOWN:
unimplemented_action = "POPPLER_ACTION_UNKNOWN";
}
@@ -2864,9 +2866,11 @@ static void
pdf_document_forms_reset_form (EvDocumentForms *document,
EvLinkAction *action)
{
+#if POPPLER_CHECK_VERSION(0, 90, 0)
poppler_document_reset_form (PDF_DOCUMENT (document)->document,
ev_link_action_get_reset_fields (action),
ev_link_action_get_exclude_reset_fields (action));
+#endif
}
static gchar *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]