From bc0fe74f720fc4392d09b12d84f1ec577bafb0c0 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 --- 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 5170913eba..17df2a113b 100644 --- a/common/lib_tree_model.cpp +++ b/common/lib_tree_model.cpp @@ -268,8 +268,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() )