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:03:15 +0100 |
commit | 5e68e52da65b4d8c3817e5fbb6f1a937da321d48 (patch) | |
tree | 537db98331e5dbbbac650edcbce46250f8634b7f /qt4 | |
parent | 439cb397fed33df627a09c70788d72bef20dc872 (diff) |
[Qt4] do not assume the destination file name for links is ASCII
Diffstat (limited to 'qt4')
-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 5712fd17..07e73047 100644 --- a/qt4/src/poppler-page.cc +++ b/qt4/src/poppler-page.cc @@ -89,9 +89,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; |