Commit 78b35504 authored by Carlos Garnacho's avatar Carlos Garnacho

tracker-extract-pdf: Ignore destination of "goto dest" actions on TOC

Whatever PopplerDest.named_dest is, it's not a real string. This triggers
UTF-8 warnings on any PDF file with such actions.

GNOME/tracker-miners#12

Closes: #12
parent 0c59d644
......@@ -85,16 +85,11 @@ read_toc (PopplerIndexIter *index,
switch (action->type) {
case POPPLER_ACTION_GOTO_DEST: {
PopplerActionGotoDest *ag = (PopplerActionGotoDest *)action;
PopplerDest *agd = ag->dest;
if (!tracker_is_empty_string (ag->title)) {
g_string_append_printf (*toc, "%s ", ag->title);
}
if (!tracker_is_empty_string (agd->named_dest)) {
g_string_append_printf (*toc, "%s ", agd->named_dest);
}
break;
}
......
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