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:
parent
cdd0145490
commit
bbc250720f
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue