Only write Allow DRC Violations if enabled.
Fixes https://gitlab.com/kicad/code/kicad/issues/11177
This commit is contained in:
parent
6a3c5b6e0e
commit
b78a260326
|
@ -76,7 +76,11 @@ void DIALOG_PNS_SETTINGS::OnOkClick( wxCommandEvent& aEvent )
|
|||
m_settings.SetOptimizeEntireDraggedTrack( m_optimizeEntireDraggedTrack->GetValue() );
|
||||
m_settings.SetAutoPosture( m_autoPosture->GetValue() );
|
||||
m_settings.SetFixAllSegments( m_fixAllSegments->GetValue() );
|
||||
|
||||
if( m_violateDrc->IsEnabled() )
|
||||
m_settings.SetAllowDRCViolations( m_violateDrc->GetValue() );
|
||||
|
||||
if( m_freeAngleMode->IsEnabled() )
|
||||
m_settings.SetFreeAngleMode( m_freeAngleMode->GetValue() );
|
||||
|
||||
aEvent.Skip(); // ends returning wxID_OK (default behavior)
|
||||
|
|
Loading…
Reference in New Issue