From e99a2fbc56f131ae36e8c83aba4ac42b93b67c17 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 23 Oct 2023 13:09:10 +0100 Subject: [PATCH] Score initializing is done by LIB_TREE_NODE::ResetScore(). Fixes https://gitlab.com/kicad/code/kicad/-/issues/15875 (cherry picked from commit bc0fe74f720fc4392d09b12d84f1ec577bafb0c0) --- common/lib_tree_model.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/lib_tree_model.cpp b/common/lib_tree_model.cpp index d3d90e1016..8d128ceab8 100644 --- a/common/lib_tree_model.cpp +++ b/common/lib_tree_model.cpp @@ -322,8 +322,6 @@ LIB_TREE_NODE_LIB_ID& LIB_TREE_NODE_LIB::AddItem( LIB_TREE_ITEM* aItem ) void LIB_TREE_NODE_LIB::UpdateScore( EDA_COMBINED_MATCHER& aMatcher, const wxString& aLib ) { - m_Score = 0; - // We need to score leaf nodes, which are usually (but not always) children. if( m_Children.size() )