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() )