From c3b50d38ddcfebbb2da49f9b6ec6ffef7541c7fd Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Tue, 12 May 2020 10:16:40 +0200 Subject: [PATCH] Pcbnew: Update PCB from schematic: try to load .kicad_sch file instead of .sch file --- pcbnew/pcb_edit_frame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index 14985c8bbf..65e18faa09 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/pcbnew/pcb_edit_frame.cpp @@ -1001,7 +1001,7 @@ bool PCB_EDIT_FRAME::FetchNetlistFromSchematic( NETLIST& aNetlist, FETCH_NETLIST if( !frame->IsShown() ) { - wxFileName schfn( Prj().GetProjectPath(), Prj().GetProjectName(), LegacySchematicFileExtension ); + wxFileName schfn( Prj().GetProjectPath(), Prj().GetProjectName(), KiCadSchematicFileExtension ); frame->OpenProjectFiles( std::vector( 1, schfn.GetFullPath() ) );