router: fixed incorrect clearance computation in highlight collisions mode.

Fixes: lp:1621186

https://bugs.launchpad.net/kicad/+bug/1621186
This commit is contained in:
Tomasz Włostowski 2016-09-07 23:15:37 +02:00 committed by Wayne Stambaugh
parent 21b76d0837
commit 0b8ab2f73d
1 changed files with 5 additions and 2 deletions

View File

@ -155,8 +155,7 @@ OBSTACLE_VISITOR::OBSTACLE_VISITOR( const ITEM* aItem ) :
m_override( NULL ),
m_extraClearance( 0 )
{
if( aItem && aItem->Kind() == ITEM::LINE_T )
m_extraClearance += static_cast<const LINE*>( aItem )->Width() / 2;
}
@ -211,6 +210,10 @@ struct NODE::DEFAULT_OBSTACLE_VISITOR : public OBSTACLE_VISITOR
m_differentNetsOnly( aDifferentNetsOnly ),
m_forceClearance( -1 )
{
if( aItem && aItem->Kind() == ITEM::LINE_T )
{
m_extraClearance += static_cast<const LINE*>( aItem )->Width() / 2;
}
}
void SetCountLimit( int aLimit )