Save DXF plot params to file and remove some dead code.

Fixes https://gitlab.com/kicad/code/kicad/issues/6720
This commit is contained in:
Jeff Young
2021-01-03 14:22:25 +00:00
parent a1d7a959f7
commit 491fc2c8f2
6 changed files with 77 additions and 75 deletions
+2 -6
View File
@@ -754,14 +754,10 @@ void DIALOG_PLOT::applyPlotSettings()
dirStr.Replace( wxT( "\\" ), wxT( "/" ) );
tempOptions.SetOutputDirectory( dirStr );
if( !m_plotOpts.IsSameAs( tempOptions, false ) )
if( !m_plotOpts.IsSameAs( tempOptions ) )
{
// First, mark board as modified only for parameters saved in file
if( !m_plotOpts.IsSameAs( tempOptions, true ) )
m_parent->OnModify();
// Now, save any change, for the session
m_parent->SetPlotSettings( tempOptions );
m_parent->OnModify();
m_plotOpts = tempOptions;
}
}