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:
Tomasz Włostowski 2018-03-26 20:13:10 +02:00
parent 347f6daddc
commit ca4e4aead4
1 changed files with 4 additions and 0 deletions

View File

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