PNS: Don't use clearance epsilon for calculating shove distances

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14707
This commit is contained in:
Jon Evans 2023-05-11 13:08:45 -04:00
parent 35158a7db9
commit 2e60315959
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ int SHOVE::getClearance( const ITEM* aA, const ITEM* aB ) const
if( m_forceClearance >= 0 )
return m_forceClearance;
return m_currentNode->GetClearance( aA, aB );
return m_currentNode->GetClearance( aA, aB, false );
}
@ -440,7 +440,7 @@ SHOVE::SHOVE_STATUS SHOVE::ShoveObstacleLine( const LINE& aCurLine, const LINE&
// hull it will be at the appropriate clearance.
int obstacleLineWidth = aObstacleLine.Width();
int clearance = getClearance( &aCurLine, &aObstacleLine ) + 1;
int clearance = getClearance( &aCurLine, &aObstacleLine );
int currentLineSegmentCount = aCurLine.SegmentCount();
HULL_SET hulls;