Browse Source

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.
pull/13/head
Seth Hillbrand 7 years ago
parent
commit
d36fbba1f3
  1. 6
      pcbnew/dialogs/dialog_pns_settings.cpp

6
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 );
}
}
Loading…
Cancel
Save