fix portion of bug 928330 mentioned in comment #2

This commit is contained in:
Dick Hollenbeck 2012-02-09 09:00:37 -06:00
parent b90d657cb8
commit 54e221cfad
2 changed files with 3 additions and 3 deletions

View File

@ -1101,7 +1101,7 @@ int PCB_EDIT_FRAME::ReadPcbFile( LINE_READER* aReader, bool Append )
continue;
}
if( TESTLINE( "PCB_TARGET" ) )
if( TESTLINE( "PCB_TARGET" ) || TESTLINE( "MIREPCB" ) )
{
PCB_TARGET* t = new PCB_TARGET( board );
board->Add( t, ADD_APPEND );

View File

@ -256,7 +256,7 @@ void KICAD_PLUGIN::loadAllSections( bool doAppend )
loadDIMENSION();
}
else if( TESTLINE( "$PCB_TARGET" ) )
else if( TESTLINE( "$PCB_TARGET" ) || TESTLINE( "$MIREPCB" ) )
{
loadPCB_TARGET();
}
@ -2459,7 +2459,7 @@ void KICAD_PLUGIN::loadPCB_TARGET()
const char* data;
char* line = m_reader->Line();
if( TESTLINE( "$EndPCB_TARGET" ) )
if( TESTLINE( "$EndPCB_TARGET" ) || TESTLINE( "$EndMIREPCB" ) )
{
return; // preferred exit
}