7
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:
Tomasz Wlostowski 2025-02-02 18:58:32 +01:00
parent 232b286793
commit 8d858fe998

View File

@ -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();
}