router: correctly handle line width in PREVIEW_ITEMs
This commit is contained in:
parent
34c037684b
commit
ebdc68ac1d
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue