Support for poppler 0.86, trial 2.
[GB.PDF] * BUG: Support for poppler 0.86, trial 2.
This commit is contained in:
parent
bdb5801687
commit
7f549758f8
2 changed files with 4 additions and 8 deletions
|
@ -255,7 +255,9 @@ static uint32_t aux_get_page_from_action(void *_object, const_LinkAction *act)
|
|||
{
|
||||
name = ((LinkGoTo*)act)->getNamedDest();
|
||||
if (name) {
|
||||
#if POPPLER_VERSION_0_64
|
||||
#if POPPLER_VERSION_0_86
|
||||
dest = THIS->doc->findDest(name).get();
|
||||
#elif POPPLER_VERSION_0_64
|
||||
dest = THIS->doc->findDest(name);
|
||||
#else
|
||||
dest = THIS->doc->findDest((GooString *) name);
|
||||
|
|
|
@ -37,13 +37,7 @@
|
|||
#endif
|
||||
#include <stdint.h>
|
||||
|
||||
#if POPPLER_VERSION_0_86
|
||||
#define const_LinkAction const LinkAction
|
||||
#define const_LinkDest std::unique_ptr<LinkDest>
|
||||
#define const_GooList const std::vector<OutlineItem*>
|
||||
#define GooList std::vector<OutlineItem*>
|
||||
#define const_GooString const GooString
|
||||
#elif POPPLER_VERSION_0_76
|
||||
#if POPPLER_VERSION_0_76
|
||||
#define const_LinkAction const LinkAction
|
||||
#define const_LinkDest const LinkDest
|
||||
#define const_GooList const std::vector<OutlineItem*>
|
||||
|
|
Loading…
Reference in a new issue