From af3aba3c46cbaa2dba2eae8a917951fa26342a04 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 6 Mar 2025 08:18:57 +0100 Subject: [PATCH] Revert "SCH_IO_MGR::GuessPluginTypeFromLibPath(): fix incorrect behavior" This reverts commit 3051a4037641d8061b2a603b406a155515e461cd. It was incorrect for non Kicad lib files. --- eeschema/sch_io/sch_io_mgr.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/eeschema/sch_io/sch_io_mgr.cpp b/eeschema/sch_io/sch_io_mgr.cpp index 64e3f405eb..3bd55aee1a 100644 --- a/eeschema/sch_io/sch_io_mgr.cpp +++ b/eeschema/sch_io/sch_io_mgr.cpp @@ -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; }