Eeschema: fix minor component tree model bug.
The component tree model was always saving the root symbol name which prevented the actual alias from be selected in the symbol chooser dialog. This also prevented the correct documentation information from being shown in the information panel. Fixes lp:1740742 https://bugs.launchpad.net/kicad/+bug/1740742
This commit is contained in:
parent
3c9316957d
commit
41f5c754e5
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* Copyright (C) 2017 Chris Pavlina <pavlina.chris@gmail.com>
|
||||
* Copyright (C) 2014 Henner Zeller <h.zeller@acm.org>
|
||||
* Copyright (C) 2014-2017 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
* Copyright (C) 2014-2018 KiCad Developers, see AUTHORS.txt for contributors.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
|
@ -168,6 +168,7 @@ void CMP_TREE_NODE_LIB_ID::Update( LIB_ALIAS* aAlias )
|
|||
if( part )
|
||||
{
|
||||
LibId = part->GetLibId();
|
||||
LibId.SetLibItemName( Name );
|
||||
footprint = part->GetFootprintField().GetText();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue