From 2e49f4588abec2c23c341b3ff36af72708746845 Mon Sep 17 00:00:00 2001 From: plc-user <74435298+plc-user@users.noreply.github.com> Date: Mon, 24 Aug 2026 18:24:30 +0200 Subject: [PATCH] fix problem with PDF-links in files with brackets in name --- sources/pdf_links.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/pdf_links.cpp b/sources/pdf_links.cpp index 0e7d131e8..5458f396b 100644 --- a/sources/pdf_links.cpp +++ b/sources/pdf_links.cpp @@ -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));