Code formatting.
This commit is contained in:
parent
a7613b6d6a
commit
a530ffad50
|
@ -176,7 +176,7 @@ int PNS_LINE::CountCorners( int aAngles )
|
|||
bool PNS_LINE::Walkaround( SHAPE_LINE_CHAIN aObstacle, SHAPE_LINE_CHAIN& aPre,
|
||||
SHAPE_LINE_CHAIN& aWalk, SHAPE_LINE_CHAIN& aPost, bool aCw ) const
|
||||
{
|
||||
const SHAPE_LINE_CHAIN& line ( CLine() );
|
||||
const SHAPE_LINE_CHAIN& line( CLine() );
|
||||
VECTOR2I ip_start;
|
||||
VECTOR2I ip_end;
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ public:
|
|||
m_width = 1; // Dummy value
|
||||
}
|
||||
|
||||
PNS_LINE( const PNS_LINE& aOther ) ;
|
||||
PNS_LINE( const PNS_LINE& aOther );
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
|
|
|
@ -831,8 +831,7 @@ bool PNS_LINE_PLACER::Move( const VECTOR2I& aP, PNS_ITEM* aEndItem )
|
|||
PNS_NODE* latestNode = m_currentNode;
|
||||
m_lastNode = latestNode->Branch();
|
||||
|
||||
if( eiDepth >= 0 && aEndItem && latestNode->Depth() > eiDepth &&
|
||||
current.SegmentCount() )
|
||||
if( eiDepth >= 0 && aEndItem && latestNode->Depth() > eiDepth && current.SegmentCount() )
|
||||
{
|
||||
splitAdjacentSegments( m_lastNode, aEndItem, current.CPoint( -1 ) );
|
||||
|
||||
|
|
|
@ -142,8 +142,8 @@ PNS_WALKAROUND::WALKAROUND_STATUS PNS_WALKAROUND::Route( const PNS_LINE& aInitia
|
|||
// special case for via-in-the-middle-of-track placement
|
||||
if( aInitialPath.PointCount() <= 1 )
|
||||
{
|
||||
if(aInitialPath.EndsWithVia() && m_world->CheckColliding( &aInitialPath.Via(), m_itemMask ) )
|
||||
return STUCK;
|
||||
if( aInitialPath.EndsWithVia() && m_world->CheckColliding( &aInitialPath.Via(), m_itemMask ) )
|
||||
return STUCK;
|
||||
|
||||
aWalkPath = aInitialPath;
|
||||
return DONE;
|
||||
|
|
|
@ -66,9 +66,10 @@ void ROUTER_PREVIEW_ITEM::Update( const PNS_ITEM* aItem )
|
|||
{
|
||||
m_originLayer = aItem->Layers().Start();
|
||||
|
||||
if( aItem->OfKind ( PNS_ITEM::LINE ) )
|
||||
if( aItem->OfKind( PNS_ITEM::LINE ) )
|
||||
{
|
||||
const PNS_LINE* l=static_cast<const PNS_LINE*>( aItem );
|
||||
const PNS_LINE* l = static_cast<const PNS_LINE*>( aItem );
|
||||
|
||||
if( !l->SegmentCount() )
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -498,7 +498,7 @@ void ROUTER_TOOL::performRouting()
|
|||
{
|
||||
bool saveUndoBuffer = true;
|
||||
|
||||
if( !prepareInteractive( ) )
|
||||
if( !prepareInteractive() )
|
||||
return;
|
||||
|
||||
while( OPT_TOOL_EVENT evt = Wait() )
|
||||
|
|
Loading…
Reference in New Issue