From d29e115804841fa559d4d09609926b275f28b5c4 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 6 Nov 2017 14:38:33 +0100 Subject: [PATCH] CMP_TREE_MODEL: set LibID for library nodes LibID needs to be set for libraries as well to be able to tell which library has been selected in the component tree widget. --- eeschema/cmp_tree_model.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/eeschema/cmp_tree_model.cpp b/eeschema/cmp_tree_model.cpp index 994e4aa691..75b2b973cd 100644 --- a/eeschema/cmp_tree_model.cpp +++ b/eeschema/cmp_tree_model.cpp @@ -236,6 +236,7 @@ CMP_TREE_NODE_LIB::CMP_TREE_NODE_LIB( CMP_TREE_NODE* aParent, wxString const& aN Name = aName; MatchName = aName.Lower(); Parent = aParent; + LibId.SetLibNickname( aName ); }