Push a few missed project settings out of the frame

Fixes https://gitlab.com/kicad/code/kicad/-/issues/4823
This commit is contained in:
Jon Evans
2020-07-06 17:30:27 -04:00
parent 3939b31027
commit 0410fdd9fb
4 changed files with 28 additions and 33 deletions
+6 -3
View File
@@ -127,7 +127,8 @@ void DIALOG_PLOT_SCHEMATIC::initDlg()
m_penWidth.SetValue( m_HPGLPenSize );
// Plot directory
wxString path = m_parent->GetPlotDirectoryName();
SCHEMATIC_SETTINGS& settings = m_parent->Schematic().Settings();
wxString path = settings.m_PlotDirectoryName;
#ifdef __WINDOWS__
path.Replace( '/', '\\' );
#endif
@@ -290,10 +291,12 @@ void DIALOG_PLOT_SCHEMATIC::getPlotOptions( RENDER_SETTINGS* aSettings )
wxString path = m_outputDirectoryName->GetValue();
path.Replace( '\\', '/' );
if( m_parent->GetPlotDirectoryName() != path )
SCHEMATIC_SETTINGS& settings = m_parent->Schematic().Settings();
if( settings.m_PlotDirectoryName != path )
m_configChanged = true;
m_parent->SetPlotDirectoryName( path );
settings.m_PlotDirectoryName = path;
}