Fix disabling free-angle mode

This commit is contained in:
Jon Evans 2021-10-30 09:08:35 -04:00
parent e6c3027531
commit 08bf28b95d
1 changed files with 2 additions and 6 deletions

View File

@ -76,12 +76,8 @@ 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_mode->GetSelection() == PNS::RM_MarkObstacles )
{
m_settings.SetAllowDRCViolations( m_violateDrc->GetValue() );
m_settings.SetFreeAngleMode( m_freeAngleMode->GetValue() );
}
aEvent.Skip(); // ends returning wxID_OK (default behavior)
}