Browse Source

Pcbnew: fix minor issue in %TO.C advanced attribute, and avoid creating an unused D10 tool in Gerber files.

pull/7/merge
jean-pierre charras 8 years ago
parent
commit
f074b57094
  1. 2
      common/common_plotGERBER_functions.cpp
  2. 25
      include/gbr_netlist_metadata.h

2
common/common_plotGERBER_functions.cpp

@ -209,8 +209,6 @@ bool GERBER_PLOTTER::StartPlot()
fputs( "G01*\n", outputFile );
fputs( "G04 APERTURE LIST*\n", outputFile );
/* Select the default aperture */
SetCurrentLineWidth( USE_DEFAULT_LINE_WIDTH, 0 );
return true;
}

25
include/gbr_netlist_metadata.h

@ -26,17 +26,18 @@
#define GBR_NETLIST_METADATA_H
// this class handle info which can be added in a gerber file as attribute
// of an obtect
// the GBR_INFO_TYPE types can be OR'ed to add 2 (or more) attributes
// There are only 3 net attributes defined attached to an object by the %TO command
// %TO.P
// %TO.N
// %TO.C
// the .P attribute can be used only for flashed pads (using the D03 command)
// and only for external copper layers, if the component is on a external copper layer
// for other copper layer items (pads on internal layers, tracks ... ), only .N and .C
// can be used
/** this class handle info which can be added in a gerber file as attribute
* of an obtect
* the GBR_INFO_TYPE types can be OR'ed to add 2 (or more) attributes
* There are only 3 net attributes defined attached to an object by the %TO command
* %TO.P
* %TO.N
* %TO.C
* the .P attribute can be used only for flashed pads (using the D03 command)
* and only for external copper layers, if the component is on a external copper layer
* for other copper layer items (pads on internal layers, tracks ... ), only .N and .C
* can be used
*/
class GBR_NETLIST_METADATA
{
public:
@ -106,7 +107,7 @@ public:
if( *aName == ".P" )
{
m_NetAttribType &= ~GBR_NETINFO_PAD;
m_Cmpref.clear();
m_Padname.clear();
return;
}
}

Loading…
Cancel
Save