Enlightenment CVS committal Author : doursse Project : e17 Module : proto
Dir : e17/proto/epdf/src/lib Modified Files: poppler_index.cpp Log Message: better fis of the index for some pdf files =================================================================== RCS file: /cvs/e/e17/proto/epdf/src/lib/poppler_index.cpp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- poppler_index.cpp 17 Apr 2006 18:06:10 -0000 1.2 +++ poppler_index.cpp 17 Apr 2006 22:44:54 -0000 1.3 @@ -99,8 +99,13 @@ if (item->action->getKind () != actionGoTo) return -1; + UGooString *named_dest = ((LinkGoTo *)item->action)->getNamedDest (); LinkDest *dest = ((LinkGoTo *)item->action)->getDest (); + if (!dest && named_dest) + dest = document->pdfdoc->findDest (named_dest); + + // we really can't find a destination if (!dest || !dest->isOk ()) return -1; ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs