Resolve title variable when plotting

Be sure to use variable name if it exists when plotting the file

Fixes https://gitlab.com/kicad/code/kicad/issues/11608

(cherry picked from commit d971cbefcb)
This commit is contained in:
Seth Hillbrand 2022-05-12 15:30:08 -07:00
parent cdd0145490
commit bbc250720f
1 changed files with 1 additions and 1 deletions

View File

@ -804,7 +804,7 @@ void DIALOG_PLOT_SCHEMATIC::createPDFFile( bool aPlotAll, bool aPlotDrawingSheet
plotter->SetRenderSettings( aRenderSettings ); plotter->SetRenderSettings( aRenderSettings );
plotter->SetColorMode( getModeColor() ); plotter->SetColorMode( getModeColor() );
plotter->SetCreator( wxT( "Eeschema-PDF" ) ); plotter->SetCreator( wxT( "Eeschema-PDF" ) );
plotter->SetTitle( m_parent->GetTitleBlock().GetTitle() ); plotter->SetTitle( ExpandTextVars( m_parent->GetTitleBlock().GetTitle(), &m_parent->Prj() ) );
wxString msg; wxString msg;
wxFileName plotFileName; wxFileName plotFileName;