From d971cbefcb7fdd1070d5f6e3a2262cc4ced50217 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 12 May 2022 15:30:08 -0700 Subject: [PATCH] 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 --- eeschema/dialogs/dialog_plot_schematic.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_plot_schematic.cpp b/eeschema/dialogs/dialog_plot_schematic.cpp index 8c45defad4..fd3a1af653 100644 --- a/eeschema/dialogs/dialog_plot_schematic.cpp +++ b/eeschema/dialogs/dialog_plot_schematic.cpp @@ -802,7 +802,7 @@ void DIALOG_PLOT_SCHEMATIC::createPDFFile( bool aPlotAll, bool aPlotDrawingSheet plotter->SetRenderSettings( aRenderSettings ); plotter->SetColorMode( getModeColor() ); plotter->SetCreator( wxT( "Eeschema-PDF" ) ); - plotter->SetTitle( m_parent->GetTitleBlock().GetTitle() ); + plotter->SetTitle( ExpandTextVars( m_parent->GetTitleBlock().GetTitle(), &m_parent->Prj() ) ); wxString msg; wxFileName plotFileName;