FABMASTER: Enforce KiCad limits on line width
We require unfilled polygons to have positive width
This commit is contained in:
parent
7e0168a99d
commit
5d352d2373
|
@ -2099,7 +2099,7 @@ bool FABMASTER::loadFootprints( BOARD* aBoard )
|
||||||
rect->SetEnd( wxPoint( lsrc->end_x, lsrc->end_y ) );
|
rect->SetEnd( wxPoint( lsrc->end_x, lsrc->end_y ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
rect->SetWidth( 0 );
|
rect->SetWidth( ds.GetLineThickness( rect->GetLayer() ) );
|
||||||
rect->SetLocalCoord();
|
rect->SetLocalCoord();
|
||||||
|
|
||||||
fp->Add( rect, ADD_MODE::APPEND );
|
fp->Add( rect, ADD_MODE::APPEND );
|
||||||
|
@ -2679,6 +2679,9 @@ bool FABMASTER::loadOutline( BOARD* aBoard, const std::unique_ptr<FABMASTER::TRA
|
||||||
line->SetEnd( wxPoint( src->end_x, src->end_y ) );
|
line->SetEnd( wxPoint( src->end_x, src->end_y ) );
|
||||||
line->SetWidth( src->width );
|
line->SetWidth( src->width );
|
||||||
|
|
||||||
|
if( line->GetWidth() == 0 )
|
||||||
|
line->SetWidth( aBoard->GetDesignSettings().GetLineThickness( layer ) );
|
||||||
|
|
||||||
aBoard->Add( line, ADD_MODE::APPEND );
|
aBoard->Add( line, ADD_MODE::APPEND );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -2694,6 +2697,9 @@ bool FABMASTER::loadOutline( BOARD* aBoard, const std::unique_ptr<FABMASTER::TRA
|
||||||
arc->SetAngle( src->result.GetCentralAngle() * 10.0 );
|
arc->SetAngle( src->result.GetCentralAngle() * 10.0 );
|
||||||
arc->SetWidth( src->width );
|
arc->SetWidth( src->width );
|
||||||
|
|
||||||
|
if( arc->GetWidth() == 0 )
|
||||||
|
arc->SetWidth( aBoard->GetDesignSettings().GetLineThickness( layer ) );
|
||||||
|
|
||||||
aBoard->Add( arc, ADD_MODE::APPEND );
|
aBoard->Add( arc, ADD_MODE::APPEND );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -2707,7 +2713,8 @@ bool FABMASTER::loadOutline( BOARD* aBoard, const std::unique_ptr<FABMASTER::TRA
|
||||||
rect->SetLayer( layer );
|
rect->SetLayer( layer );
|
||||||
rect->SetStart( wxPoint( src->start_x, src->start_y ) );
|
rect->SetStart( wxPoint( src->start_x, src->start_y ) );
|
||||||
rect->SetEnd( wxPoint( src->end_x, src->end_y ) );
|
rect->SetEnd( wxPoint( src->end_x, src->end_y ) );
|
||||||
rect->SetWidth( 0 );
|
rect->SetWidth( aBoard->GetDesignSettings().GetLineThickness( layer ) );
|
||||||
|
|
||||||
aBoard->Add( rect, ADD_MODE::APPEND );
|
aBoard->Add( rect, ADD_MODE::APPEND );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue