Don't copy lastDriver when cloning connection.

Fixes https://gitlab.com/kicad/code/kicad/issues/6018
This commit is contained in:
Jeff Young 2020-11-03 12:06:11 +00:00
parent f9a19f1d13
commit 6a3c868db5
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ void SCH_CONNECTION::Clone( SCH_CONNECTION& aOther )
{
m_graph = aOther.m_graph;
m_type = aOther.Type();
m_lastDriver = aOther.GetLastDriver();
// Note: m_lastDriver is not cloned as it needs to be the last driver of *this* connection
m_driver = aOther.Driver();
m_sheet = aOther.Sheet();
m_name = aOther.m_name;