← Back to team overview

kicad-developers team mailing list archive

Power symbol net generation.

 

Hi,

While making my own power symbols, I noticed they would only connect
the net properly if the pin was set to PINNOTDRAW and PIN_POWER_IN; it
seems like this behavior should be triggered by ENTRY_POWER (checking
the power symbol box) instead.

I briefly tested the attached change and it seems to work.

-Mar.

Index: netlist.cpp
===================================================================
--- netlist.cpp (revision 576)
+++ netlist.cpp (working copy)
@@ -614,8 +614,7 @@
}
NbrItem++;

- if( ( (int) Pin->m_PinType == (int) PIN_POWER_IN )
- && ( Pin->m_Attributs & PINNOTDRAW ) )
+ if( Entry && Entry->m_Options == ENTRY_POWER )
{
/* Il y a un PIN_LABEL Associe */
if( ObjNet )