diff options
author | Pino Toscano <pino@kde.org> | 2009-02-21 18:02:36 +0100 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2009-02-21 18:02:36 +0100 |
commit | 439cb397fed33df627a09c70788d72bef20dc872 (patch) | |
tree | 5ca578faf5a2dc0ac16186f702e17882b08a57df /qt | |
parent | 3ea5f45ad3e5a55e577a2e45f61b55932ed17013 (diff) |
[Qt] do not assume the destination file name for links is ASCII
Diffstat (limited to 'qt')
-rw-r--r-- | qt/poppler-page.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qt/poppler-page.cc b/qt/poppler-page.cc index 536babbb..9c7e4f2f 100644 --- a/qt/poppler-page.cc +++ b/qt/poppler-page.cc @@ -278,9 +278,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; |