Browse Source
Removed NETINFO_ITEM::SetNet() and NETINFO_ITEM::SetNetname() methods.
Removed NETINFO_ITEM::SetNet() and NETINFO_ITEM::SetNetname() methods.
NETINFO_ITEM::m_Net and NETINFO_ITEM::m_Netname are const. Changes to be verified: - pcbnew/minimun_spanning_tree.cpp: It segfaults is m_Size == 0 - pcbnew/exporters/export_gencad.cpp: I removed the SetNetname() call, as it changes only the unconnected net and in the next line it returns if the net is unconnected. Still, I wonder if name for the unconnected net matters. What about tests that check if a net name is empty to decide if it is unconnected net or not.pull/1/head
7 changed files with 45 additions and 72 deletions
-
39pcbnew/class_netinfo.h
-
19pcbnew/class_netinfo_item.cpp
-
45pcbnew/class_netinfolist.cpp
-
1pcbnew/exporters/export_gencad.cpp
-
7pcbnew/legacy_plugin.cpp
-
2pcbnew/minimun_spanning_tree.cpp
-
4pcbnew/pcb_parser.cpp
Write
Preview
Loading…
Cancel
Save
Reference in new issue