|
|
@ -907,13 +907,12 @@ void SCH_EDIT_FRAME::doUpdatePcb( const wxString& aUpdateOptions ) |
|
|
|
|
|
|
|
exporter.Format( &formatter, GNL_ALL ); |
|
|
|
|
|
|
|
// Copy the netlist in a static string, to have a long life time
|
|
|
|
// and giving to Pcbnew the time to analyze this netlist:
|
|
|
|
static std::string netlist_string; |
|
|
|
netlist_string = wxString::Format("%s\n%s", aUpdateOptions, formatter.GetString() ).ToStdString(); |
|
|
|
auto updateOptions = aUpdateOptions.ToStdString(); |
|
|
|
auto netlistString = formatter.GetString(); |
|
|
|
auto finalNetlist = updateOptions + "\n" + netlistString; |
|
|
|
|
|
|
|
// Now, send the "kicad" (s-expr) netlist to Pcbnew
|
|
|
|
Kiway().ExpressMail( FRAME_PCB, MAIL_SCH_PCB_UPDATE, netlist_string, this ); |
|
|
|
Kiway().ExpressMail( FRAME_PCB, MAIL_SCH_PCB_UPDATE, finalNetlist, this ); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|