Commit 42d47101 authored by Albert Astals Cid's avatar Albert Astals Cid

XPS: Fix crash opening some files

Yet another QUrl porting mistake, i think this time is the correct one,
at least i can open all the 6 xps files i have

BUGS: 390355
parent b9a392d6
......@@ -474,7 +474,7 @@ static QString absolutePath( const QString &path, const QString &location )
retPath = location;
} else {
QUrl u = QUrl::fromLocalFile(path);
QUrl u2 = QUrl::fromLocalFile(location);
QUrl u2 = QUrl(location);
retPath = u.resolved(u2).toDisplayString(QUrl::PreferLocalFile);
// it seems paths & file names can also be percent-encoded
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment