summaryrefslogtreecommitdiff
path: root/backend/pdf
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-08-01 19:05:48 +0200
committerraveit65 <[email protected]>2020-09-02 12:10:14 +0200
commitc71e8323088ef9326e655a21c269d71a62982459 (patch)
treea58ae661ca934d8ed11aec6c1b5fc27c9e16345a /backend/pdf
parent69f1e80f5e1efe7d9229a6f8200d1107527975af (diff)
downloadatril-c71e8323088ef9326e655a21c269d71a62982459.tar.bz2
atril-c71e8323088ef9326e655a21c269d71a62982459.tar.xz
ev-poppler: 'POPPLER_ACTION_RESET_FORM' not handled in switch [-Wswitch]
Diffstat (limited to 'backend/pdf')
-rw-r--r--backend/pdf/ev-poppler.cc21
1 files changed, 13 insertions, 8 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index be08719b..32005dd8 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -1095,18 +1095,18 @@ ev_link_from_action (PdfDocument *pdf_document,
break;
case POPPLER_ACTION_GOTO_DEST: {
EvLinkDest *dest;
-
+
dest = ev_link_dest_from_dest (pdf_document, action->goto_dest.dest);
ev_action = ev_link_action_new_dest (dest);
}
break;
case POPPLER_ACTION_GOTO_REMOTE: {
EvLinkDest *dest;
-
+
dest = ev_link_dest_from_dest (pdf_document, action->goto_remote.dest);
- ev_action = ev_link_action_new_remote (dest,
+ ev_action = ev_link_action_new_remote (dest,
action->goto_remote.file_name);
-
+
}
break;
case POPPLER_ACTION_LAUNCH:
@@ -1170,19 +1170,24 @@ 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:
+ unimplemented_action = "POPPLER_ACTION_RESET_FORM";
+ break;
+#endif /* POPPLER_CHECK_VERSION(0,90,0) */
case POPPLER_ACTION_UNKNOWN:
unimplemented_action = "POPPLER_ACTION_UNKNOWN";
}
-
+
if (unimplemented_action) {
g_warning ("Unimplemented action: %s, please post a bug report "
"on Atril bug tracker (https://github.com/mate-desktop/atril/issues) "
"with a testcase.", unimplemented_action);
}
-
+
link = ev_link_new (action->any.title, ev_action);
-
- return link;
+
+ return link;
}
static void