Remove error reporting which throw up GUI from plugin.
It's reporting a class of error (reference to non-existing net) which could happen in a variety of other ways that aren't reported. The correct thing to do is to alwasy run DRC.
This commit is contained in:
parent
6b46c9b8be
commit
35a1b8a353
|
@ -4529,16 +4529,6 @@ ZONE_CONTAINER* PCB_PARSER::parseZONE_CONTAINER( BOARD_ITEM_CONTAINER* aParent )
|
|||
pushValueIntoMap( newnetcode, net->GetNet() );
|
||||
// and update the zone netcode
|
||||
zone->SetNetCode( net->GetNet() );
|
||||
|
||||
// FIXME: a call to any GUI item is not allowed in io plugins:
|
||||
// Change this code to generate a warning message outside this plugin
|
||||
// Prompt the user
|
||||
wxString msg;
|
||||
msg.Printf( _( "There is a zone that belongs to a not existing net\n"
|
||||
"\"%s\"\n"
|
||||
"you should verify and edit it (run DRC test)." ),
|
||||
GetChars( netnameFromfile ) );
|
||||
DisplayError( NULL, msg );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue