Browse Source

A more generic error message when route start pt violates DRC.

Fixes https://gitlab.com/kicad/code/kicad/issues/1812
6.0.7
Jeff Young 5 years ago
parent
commit
a95e2184da
  1. 4
      common/eda_base_frame.cpp
  2. 2
      pcbnew/router/pns_router.cpp
  3. 2
      pcbnew/router/router_tool.cpp

4
common/eda_base_frame.cpp

@ -677,14 +677,14 @@ void EDA_BASE_FRAME::PrintMsg( const wxString& text )
void EDA_BASE_FRAME::ShowInfoBarError( const wxString& aErrorMsg )
{
m_infoBar->RemoveAllButtons();
GetInfoBar()->ShowMessageFor( aErrorMsg, 5000, wxICON_ERROR );
GetInfoBar()->ShowMessageFor( aErrorMsg, 8000, wxICON_ERROR );
}
void EDA_BASE_FRAME::ShowInfoBarWarning( const wxString& aWarningMsg )
{
m_infoBar->RemoveAllButtons();
GetInfoBar()->ShowMessageFor( aWarningMsg, 5000, wxICON_WARNING );
GetInfoBar()->ShowMessageFor( aWarningMsg, 8000, wxICON_WARNING );
}

2
pcbnew/router/pns_router.cpp

@ -191,7 +191,7 @@ bool ROUTER::StartRouting( const VECTOR2I& aP, ITEM* aStartItem, int aLayer )
if( ! isStartingPointRoutable( aP, aLayer ) )
{
SetFailureReason( _("Cannot start routing inside a keepout area or board outline." ) );
SetFailureReason( _( "The routing start point violates DRC." ) );
return false;
}

2
pcbnew/router/router_tool.cpp

@ -938,7 +938,7 @@ bool ROUTER_TOOL::prepareInteractive()
if( !m_router->StartRouting( m_startSnapPoint, m_startItem, routingLayer ) )
{
DisplayError( frame(), m_router->FailureReason() );
frame()->ShowInfoBarError( m_router->FailureReason() );
highlightNet( false );
controls()->SetAutoPan( false );
return false;

Loading…
Cancel
Save