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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user