qt/poppler-page.cc | 4 ++-- qt4/src/poppler-page.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
New commits: commit 9f7ec4c5a0befcf599b69ca2c2e4390c3eb23782 Author: Pino Toscano <[email protected]> Date: Sat Feb 21 18:03:15 2009 +0100 [Qt4] do not assume the destination file name for links is ASCII diff --git a/qt4/src/poppler-page.cc b/qt4/src/poppler-page.cc index db58fbc..405ae05 100644 --- a/qt4/src/poppler-page.cc +++ b/qt4/src/poppler-page.cc @@ -86,9 +86,9 @@ Link* PageData::convertLinkActionToLink(::LinkAction * a, DocumentData *parentDo { LinkGoToR * g = (LinkGoToR *) a; // copy link file - const char * fileName = g->getFileName()->getCString(); + const QString fileName = UnicodeParsedString( g->getFileName() ); // ceate link: fileName, namedDest, object pointer - popplerLink = new LinkGoto( linkArea, (QString)fileName, LinkDestination( LinkDestinationData(g->getDest(), g->getNamedDest(), parentDoc ) ) ); + popplerLink = new LinkGoto( linkArea, fileName, LinkDestination( LinkDestinationData(g->getDest(), g->getNamedDest(), parentDoc ) ) ); } break; commit 8410d000c7824fec22d2ff4f64e472fe2745a3f7 Author: Pino Toscano <[email protected]> Date: Sat Feb 21 18:02:36 2009 +0100 [Qt] do not assume the destination file name for links is ASCII diff --git a/qt/poppler-page.cc b/qt/poppler-page.cc index 67a8aa7..ca924e6 100644 --- a/qt/poppler-page.cc +++ b/qt/poppler-page.cc @@ -277,9 +277,9 @@ QValueList<Link*> Page::links() const { LinkGoToR * g = (LinkGoToR *) a; // copy link file - const char * fileName = g->getFileName()->getCString(); + const QString fileName = UnicodeParsedString( g->getFileName() ); // ceate link: fileName, namedDest, object pointer - popplerLink = new LinkGoto( linkArea, (QString)fileName, LinkDestination( LinkDestinationData(g->getDest(), g->getNamedDest(), data->doc->data ) ) ); + popplerLink = new LinkGoto( linkArea, fileName, LinkDestination( LinkDestinationData(g->getDest(), g->getNamedDest(), data->doc->data ) ) ); } break; _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
