From d36fbba1f3970a3381cf857a94b50acc5bfa370d Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 23 Feb 2019 08:10:21 -0800 Subject: [PATCH] pcbnew: Violate DRC only enabled in Highlight mode Violating the DRC cannot happen in shove or walk around mode as we use the DRC to calculate these actions. The tooltip explains this as well but we need to explicitly disable the checkbox to prevent users from thinking that they can complete DRC violating tracks in other modes. --- pcbnew/dialogs/dialog_pns_settings.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcbnew/dialogs/dialog_pns_settings.cpp b/pcbnew/dialogs/dialog_pns_settings.cpp index 5d79c1a62e..78b22534f6 100644 --- a/pcbnew/dialogs/dialog_pns_settings.cpp +++ b/pcbnew/dialogs/dialog_pns_settings.cpp @@ -80,10 +80,16 @@ void DIALOG_PNS_SETTINGS::OnOkClick( wxCommandEvent& aEvent ) void DIALOG_PNS_SETTINGS::onModeChange( wxCommandEvent& aEvent ) { if( m_mode->GetSelection() == PNS::RM_MarkObstacles ) + { m_freeAngleMode->Enable(); + m_violateDrc->Enable(); + } else { m_freeAngleMode->SetValue( false ); m_freeAngleMode->Enable( false ); + + m_violateDrc->SetValue( false ); + m_violateDrc->Enable( false ); } }