Pcbnew: fix ADD_APPEND option in BOARD::Add() so using version control for board files is practical.
This commit is contained in:
parent
a543b5063f
commit
e211a77d8b
|
@ -685,9 +685,17 @@ void BOARD::Add( BOARD_ITEM* aBoardItem, int aControl )
|
||||||
|
|
||||||
case PCB_TRACE_T:
|
case PCB_TRACE_T:
|
||||||
case PCB_VIA_T:
|
case PCB_VIA_T:
|
||||||
TRACK* insertAid;
|
if( aControl & ADD_APPEND )
|
||||||
insertAid = ( (TRACK*) aBoardItem )->GetBestInsertPoint( this );
|
{
|
||||||
m_Track.Insert( (TRACK*) aBoardItem, insertAid );
|
m_Track.PushBack( (TRACK*) aBoardItem );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
TRACK* insertAid;
|
||||||
|
insertAid = ( (TRACK*) aBoardItem )->GetBestInsertPoint( this );
|
||||||
|
m_Track.Insert( (TRACK*) aBoardItem, insertAid );
|
||||||
|
}
|
||||||
|
|
||||||
aBoardItem->SetParent( this );
|
aBoardItem->SetParent( this );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue