PANEL_EESCHEMA_COLOR_SETTINGS: fix a minor cosmetic issue.

This commit is contained in:
jean-pierre charras 2021-11-29 12:54:19 +01:00
parent 3a51fb6ac6
commit 91363dd93c
1 changed files with 14 additions and 0 deletions

View File

@ -271,6 +271,20 @@ void PANEL_EESCHEMA_COLOR_SETTINGS::createPreviewItems()
{
SCH_LINE* wire = new SCH_LINE;
wire->SetLayer( line.first );
STROKE_PARAMS stroke = wire->GetStroke();
stroke.SetWidth( Mils2iu( 6 ) );
if( line.first != LAYER_NOTES )
{
stroke.SetPlotStyle( PLOT_DASH_TYPE::SOLID );
if( line.first == LAYER_BUS )
stroke.SetWidth( Mils2iu( 12 ) );
}
wire->SetStroke( stroke );
wire->SetStartPoint( wxPoint( Mils2iu( line.second.first.x ),
Mils2iu( line.second.first.y ) ) );
wire->SetEndPoint( wxPoint( Mils2iu( line.second.second.x ),