From a3072ffadecfa9e4c1b6ac39c1de6554e06bdc7c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 9 Dec 2023 14:10:22 +0000 Subject: [PATCH] Revert e99a2fbc56f131ae36e8c83aba4ac42b93b67c17. The full fix will have to wait for 8.0: 0cf6679bfe68edbf90ecfca77db349896a9df697 64c692a42ee41634308898693629bc9967c0cb8f 72c985bc07bc2a9fbbb5d557aa2bda9b02f28eb1 2f3c0a608d2bcc0af0583ab554fddd48fe2ab360 --- common/lib_tree_model.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lib_tree_model.cpp b/common/lib_tree_model.cpp index 8d128ceab8..d3d90e1016 100644 --- a/common/lib_tree_model.cpp +++ b/common/lib_tree_model.cpp @@ -322,6 +322,8 @@ 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() )