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

This commit is contained in:
jean-pierre charras 2017-07-02 16:41:31 +02:00
parent 9a2322cfcd
commit f074b57094
2 changed files with 13 additions and 14 deletions

View File

@ -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;
}

View File

@ -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;
}
}