Browse Source

Fix crash trying to create a new board.

newinvert
Jeff Young 2 years ago
parent
commit
e242f54816
  1. 5
      pcbnew/files.cpp

5
pcbnew/files.cpp

@ -549,7 +549,10 @@ bool PCB_EDIT_FRAME::OpenProjectFiles( const std::vector<wxString>& aFileSet, in
// No save prompt (we already prompted above), and only reset to a new blank board if new
Clear_Pcb( false, !is_new );
IO_MGR::PCB_FILE_T pluginType = IO_MGR::FindPluginTypeFromBoardPath( fullFileName, aCtl );
IO_MGR::PCB_FILE_T pluginType = IO_MGR::KICAD_SEXP;
if( !is_new )
pluginType = IO_MGR::FindPluginTypeFromBoardPath( fullFileName, aCtl );
if( pluginType == IO_MGR::FILE_TYPE_NONE )
return false;

Loading…
Cancel
Save