router: correctly handle line width in PREVIEW_ITEMs

This commit is contained in:
Tomasz Wlostowski 2021-02-11 23:08:02 +01:00
parent 34c037684b
commit ebdc68ac1d
1 changed files with 4 additions and 1 deletions

View File

@ -391,7 +391,10 @@ void ROUTER_PREVIEW_ITEM::Line( const SHAPE_LINE_CHAIN& aLine, int aWidth, int a
m_color = assignColor( aStyle );
m_type = PR_SHAPE;
m_depth = -1024; // TODO gal->GetMinDepth()
m_shape = aLine.Clone();
SHAPE_LINE_CHAIN *lc = static_cast<SHAPE_LINE_CHAIN*>( aLine.Clone() );
lc->SetWidth( aWidth );
m_shape = lc;
}