Eagle plugin: remve a non-static initializer.

This commit is contained in:
unknown 2015-11-15 18:53:26 +01:00 committed by jean-pierre charras
parent 19075e3434
commit 4141a250fe
1 changed files with 4 additions and 2 deletions

View File

@ -797,7 +797,7 @@ struct EPOLYGON
HATCH, HATCH,
CUTOUT, CUTOUT,
}; };
int pour = EPOLYGON::SOLID; int pour;
opt_double isolate; opt_double isolate;
opt_bool orphans; opt_bool orphans;
opt_bool thermals; opt_bool thermals;
@ -827,8 +827,10 @@ EPOLYGON::EPOLYGON( CPTREE& aPolygon )
layer = attribs.get<int>( "layer" ); layer = attribs.get<int>( "layer" );
spacing = attribs.get_optional<double>( "spacing" ); spacing = attribs.get_optional<double>( "spacing" );
isolate = attribs.get_optional<double>( "isolate" ); isolate = attribs.get_optional<double>( "isolate" );
// default pour to solid fill
pour = EPOLYGON::SOLID;
opt_string s = attribs.get_optional<string>( "pour" ); opt_string s = attribs.get_optional<string>( "pour" );
if( s ) if( s )
{ {
// (solid | hatch | cutout) // (solid | hatch | cutout)