Don't fill drawing sheet rects with transparent fill.
It might make sense to do that with board and/or schematic items for hit-testing or something, but it definitely doesn't make any sense for the drawing sheet border. Also, when reading in items with a transparent fill, treat them as unfilled (otherwise we get filled with layer colour in at least PCBNew).
This commit is contained in:
@@ -112,8 +112,12 @@ void PlotDrawingSheet( PLOTTER* plotter, const PROJECT* aProject, const TITLE_BL
|
||||
case WSG_RECT_T:
|
||||
{
|
||||
DS_DRAW_ITEM_RECT* rect = (DS_DRAW_ITEM_RECT*) item;
|
||||
int penWidth = std::max( rect->GetPenWidth(), defaultPenWidth );
|
||||
plotter->Rect( rect->GetStart(), rect->GetEnd(), FILL_T::NO_FILL, penWidth );
|
||||
plotter->SetCurrentLineWidth( std::max( rect->GetPenWidth(), defaultPenWidth ) );
|
||||
plotter->MoveTo( rect->GetStart() );
|
||||
plotter->LineTo( VECTOR2I( rect->GetEnd().x, rect->GetStart().y ) );
|
||||
plotter->LineTo( VECTOR2I( rect->GetEnd().x, rect->GetEnd().y ) );
|
||||
plotter->LineTo( VECTOR2I( rect->GetStart().x, rect->GetEnd().y ) );
|
||||
plotter->FinishTo( rect->GetStart() );
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user