mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-03 09:14:12 +02:00
fix problem with PDF-links in files with brackets in name
This commit is contained in:
@@ -228,7 +228,7 @@ void convertUriToGoTo(const QString &pdfPath)
|
||||
|
||||
// Find closing ')' of the URI value
|
||||
int uriStart = found + sUri.size();
|
||||
int closeParen = data.indexOf(')', uriStart);
|
||||
int closeParen = data.indexOf(")\n", uriStart);
|
||||
if (closeParen == -1) {
|
||||
// Malformed — copy rest verbatim
|
||||
out.append(data.mid(found));
|
||||
|
||||
Reference in New Issue
Block a user