mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-11 16:10:10 +00:00
router: prevent shove endpoint-in-hull fallback code from making non-45 degree tracks
Fixes https://gitlab.com/kicad/code/kicad/issues/19760
This commit is contained in:
parent
232b286793
commit
8d858fe998
@ -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…
Reference in New Issue
Block a user