Resolve variables in hrefs.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20340

(cherry picked from commit f4a5404e0a)
This commit is contained in:
Jeff Young
2025-03-15 19:31:25 +00:00
parent e7ea87f454
commit 96bfa17469
3 changed files with 9 additions and 4 deletions
+5 -2
View File
@@ -1304,8 +1304,8 @@ bool PDF_PLOTTER::EndPlot()
for( const auto& [ linkHandle, linkPair ] : m_hyperlinkHandles )
{
const BOX2D& box = linkPair.first;
const wxString& url = linkPair.second;
BOX2D box = linkPair.first;
wxString url = linkPair.second;
startPdfObject( linkHandle );
@@ -1345,6 +1345,9 @@ bool PDF_PLOTTER::EndPlot()
}
else
{
if( m_project )
url = ResolveUriByEnvVars( url, m_project );
fprintf( m_outputFile,
"/A << /Type /Action /S /URI /URI %s >>\n"
">>\n",