Browse Source

router: prevent shove endpoint-in-hull fallback code from making non-45 degree tracks

Fixes https://gitlab.com/kicad/code/kicad/issues/19760
pcb_db
Tomasz Wlostowski 9 months ago
parent
commit
8d858fe998
  1. 4
      pcbnew/router/pns_shove.cpp

4
pcbnew/router/pns_shove.cpp

@ -371,14 +371,14 @@ bool SHOVE::shoveLineToHullSet( const LINE& aCurLine, const LINE& aObstacleLine,
if( minDist1 < c_ENDPOINT_ON_HULL_THRESHOLD )
{
l.Line().SetPoint( -1, p1 );
l.Line().Append( p1 );
obs = l.CLine();
path = l.CLine();
}
if( minDist0 < c_ENDPOINT_ON_HULL_THRESHOLD )
{
l.Line().SetPoint( 0, p0 );
l.Line().Insert( 0, p0 );
obs = l.CLine();
path = l.CLine();
}

Loading…
Cancel
Save