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:
parent
347f6daddc
commit
ca4e4aead4
|
@ -608,6 +608,10 @@ SHOVE::SHOVE_STATUS SHOVE::pushVia( VIA* aVia, const VECTOR2I& aForce, int aCurr
|
||||||
if( jt->IsLocked() )
|
if( jt->IsLocked() )
|
||||||
return SH_INCOMPLETE;
|
return SH_INCOMPLETE;
|
||||||
|
|
||||||
|
// nothing to push...
|
||||||
|
if ( aForce.x == 0 && aForce.y == 0 )
|
||||||
|
return SH_OK;
|
||||||
|
|
||||||
while( aForce.x != 0 || aForce.y != 0 )
|
while( aForce.x != 0 || aForce.y != 0 )
|
||||||
{
|
{
|
||||||
JOINT* jt_next = m_currentNode->FindJoint( p0_pushed, aVia );
|
JOINT* jt_next = m_currentNode->FindJoint( p0_pushed, aVia );
|
||||||
|
|
Loading…
Reference in New Issue