summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2009-02-21 18:03:15 +0100
committerPino Toscano <pino@kde.org>2009-02-21 18:04:37 +0100
commit9f7ec4c5a0befcf599b69ca2c2e4390c3eb23782 (patch)
tree387f2333d30908145fe01c1c8b45b9f63905dc6f
parent8410d000c7824fec22d2ff4f64e472fe2745a3f7 (diff)
[Qt4] do not assume the destination file name for links is ASCII
-rw-r--r--qt4/src/poppler-page.cc4
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;