router: don't push vias if push force is zero
Fixes: lp:1758540 * https://bugs.launchpad.net/kicad/+bug/1758540
This commit is contained in:
@@ -608,6 +608,10 @@ SHOVE::SHOVE_STATUS SHOVE::pushVia( VIA* aVia, const VECTOR2I& aForce, int aCurr
|
||||
if( jt->IsLocked() )
|
||||
return SH_INCOMPLETE;
|
||||
|
||||
// nothing to push...
|
||||
if ( aForce.x == 0 && aForce.y == 0 )
|
||||
return SH_OK;
|
||||
|
||||
while( aForce.x != 0 || aForce.y != 0 )
|
||||
{
|
||||
JOINT* jt_next = m_currentNode->FindJoint( p0_pushed, aVia );
|
||||
|
||||
Reference in New Issue
Block a user