Revert "SCH_IO_MGR::GuessPluginTypeFromLibPath(): fix incorrect behavior"

This reverts commit 3051a40376.
It was incorrect for non Kicad lib files.
This commit is contained in:
jean-pierre charras
2025-03-06 08:18:57 +01:00
parent 086b9907c2
commit af3aba3c46
+1 -4
View File
@@ -154,10 +154,7 @@ SCH_IO_MGR::SCH_FILE_T SCH_IO_MGR::GuessPluginTypeFromLibPath( const wxString& a
if( !pi )
continue;
// Use SCH_IO::CanReadLibrary() here instead of SCH_IO_KICAD_SEXPR::CanReadLibrary
// because aLibPath does not always exist, and we need to use the version that
// does not test the existence of fil, just know if aLibPath file type can be handled.
if( pi->SCH_IO::CanReadLibrary( aLibPath ) )
if( pi->CanReadLibrary( aLibPath ) )
return fileType;
}