fix portion of bug 928330 mentioned in comment #2
This commit is contained in:
parent
b90d657cb8
commit
54e221cfad
|
@ -1101,7 +1101,7 @@ int PCB_EDIT_FRAME::ReadPcbFile( LINE_READER* aReader, bool Append )
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( TESTLINE( "PCB_TARGET" ) )
|
if( TESTLINE( "PCB_TARGET" ) || TESTLINE( "MIREPCB" ) )
|
||||||
{
|
{
|
||||||
PCB_TARGET* t = new PCB_TARGET( board );
|
PCB_TARGET* t = new PCB_TARGET( board );
|
||||||
board->Add( t, ADD_APPEND );
|
board->Add( t, ADD_APPEND );
|
||||||
|
|
|
@ -256,7 +256,7 @@ void KICAD_PLUGIN::loadAllSections( bool doAppend )
|
||||||
loadDIMENSION();
|
loadDIMENSION();
|
||||||
}
|
}
|
||||||
|
|
||||||
else if( TESTLINE( "$PCB_TARGET" ) )
|
else if( TESTLINE( "$PCB_TARGET" ) || TESTLINE( "$MIREPCB" ) )
|
||||||
{
|
{
|
||||||
loadPCB_TARGET();
|
loadPCB_TARGET();
|
||||||
}
|
}
|
||||||
|
@ -2459,7 +2459,7 @@ void KICAD_PLUGIN::loadPCB_TARGET()
|
||||||
const char* data;
|
const char* data;
|
||||||
char* line = m_reader->Line();
|
char* line = m_reader->Line();
|
||||||
|
|
||||||
if( TESTLINE( "$EndPCB_TARGET" ) )
|
if( TESTLINE( "$EndPCB_TARGET" ) || TESTLINE( "$EndMIREPCB" ) )
|
||||||
{
|
{
|
||||||
return; // preferred exit
|
return; // preferred exit
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue