Pcbnew: fix bug in pcb_parser: incorrect pad local solder paste margin ratio value read when not 0. ( This also fixes bug 1170535 )

This commit is contained in:
jean-pierre charras 2013-04-19 09:14:27 +02:00
parent 97ccebf355
commit 74c64958f4
3 changed files with 8 additions and 2 deletions

View File

@ -250,6 +250,12 @@ void NETLIST_READER::TestFootprintsMatchingAndExchange()
if( newModule )
{
wxString msg;
msg.Printf( _( "Module ref %s, change footprint %s to %s\n" ),
GetChars( module->GetReference() ),
GetChars( module->GetLibRef() ),
GetChars( cmp_info->m_Footprint ) );
m_messageWindow->AppendText( msg );
// Change old module to the new module (and delete the old one)
m_pcbframe->Exchange_Module( module, newModule, NULL );
}

View File

@ -2182,7 +2182,8 @@ D_PAD* PCB_PARSER::parseD_PAD() throw( IO_ERROR, PARSE_ERROR )
break;
case T_solder_paste_margin_ratio:
pad->SetLocalSolderPasteMarginRatio( parseBoardUnits( T_solder_paste_margin_ratio ) );
pad->SetLocalSolderPasteMarginRatio(
parseDouble( "pad local solder paste margin ratio value" ) );
NeedRIGHT();
break;

View File

@ -177,7 +177,6 @@ int DIALOG_EXCHANGE_MODULE::Maj_ListeCmp( const wxString& reference,
FILE* FichCmp, * NewFile;
char line[1024];
wxString msg;
// char* quiet_gcc_4_4_3;
if( old_name == new_name )
return 0;