diff options
author | Pino Toscano <pino@kde.org> | 2009-02-21 18:03:15 +0100 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2009-02-21 18:04:37 +0100 |
commit | 9f7ec4c5a0befcf599b69ca2c2e4390c3eb23782 (patch) | |
tree | 387f2333d30908145fe01c1c8b45b9f63905dc6f | |
parent | 8410d000c7824fec22d2ff4f64e472fe2745a3f7 (diff) |
[Qt4] do not assume the destination file name for links is ASCII
-rw-r--r-- | qt4/src/poppler-page.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt4/src/poppler-page.cc b/qt4/src/poppler-page.cc index db58fbc5..405ae051 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; |