Pcbnew: Update PCB from schematic: try to load .kicad_sch file instead of .sch file

This commit is contained in:
jean-pierre charras 2020-05-12 10:16:40 +02:00
parent c66bf3df67
commit c3b50d38dd
1 changed files with 1 additions and 1 deletions

View File

@ -1001,7 +1001,7 @@ bool PCB_EDIT_FRAME::FetchNetlistFromSchematic( NETLIST& aNetlist, FETCH_NETLIST
if( !frame->IsShown() ) if( !frame->IsShown() )
{ {
wxFileName schfn( Prj().GetProjectPath(), Prj().GetProjectName(), LegacySchematicFileExtension ); wxFileName schfn( Prj().GetProjectPath(), Prj().GetProjectName(), KiCadSchematicFileExtension );
frame->OpenProjectFiles( std::vector<wxString>( 1, schfn.GetFullPath() ) ); frame->OpenProjectFiles( std::vector<wxString>( 1, schfn.GetFullPath() ) );