From 35a1b8a353eb2f5a74779c86c009909b3dd61a1b Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 31 Aug 2020 14:11:59 +0100 Subject: [PATCH] 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. --- pcbnew/pcb_parser.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pcbnew/pcb_parser.cpp b/pcbnew/pcb_parser.cpp index 15140a1d02..ae42514d91 100644 --- a/pcbnew/pcb_parser.cpp +++ b/pcbnew/pcb_parser.cpp @@ -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 ); } }