From a60a4405c8e8096a588458d00454719ffcb2b4ff Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Thu, 9 Feb 2012 09:00:37 -0600 Subject: [PATCH] fix portion of bug 928330 mentioned in comment #2 --- pcbnew/ioascii.cpp | 2 +- pcbnew/kicad_plugin.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/ioascii.cpp b/pcbnew/ioascii.cpp index 139fcae7e5..e6c83e83d4 100644 --- a/pcbnew/ioascii.cpp +++ b/pcbnew/ioascii.cpp @@ -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 ); diff --git a/pcbnew/kicad_plugin.cpp b/pcbnew/kicad_plugin.cpp index f58973421d..424ecc8ae0 100644 --- a/pcbnew/kicad_plugin.cpp +++ b/pcbnew/kicad_plugin.cpp @@ -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 }