Hook up TITLE_BLOCK resolver to jobs.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19471
This commit is contained in:
Jeff Young
2025-01-12 22:31:09 +00:00
parent 62041fdb69
commit a7c130b82d
7 changed files with 44 additions and 18 deletions
-9
View File
@@ -71,15 +71,6 @@ PROJECT::~PROJECT()
bool PROJECT::TextVarResolver( wxString* aToken ) const
{
// Special case because the resolution of PROJECTNAME is usually tied to title blocks
// but we want this for jobs
// Future todo is to rework vars entirely
if( aToken->IsSameAs( wxT( "PROJECTNAME" ) ) )
{
*aToken = GetProjectName();
return true;
}
if( GetTextVars().count( *aToken ) > 0 )
{
*aToken = GetTextVars().at( *aToken );