diff --git a/pcbnew/router/router_preview_item.cpp b/pcbnew/router/router_preview_item.cpp index 750a9c6d3e..8e574a147e 100644 --- a/pcbnew/router/router_preview_item.cpp +++ b/pcbnew/router/router_preview_item.cpp @@ -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( aLine.Clone() ); + lc->SetWidth( aWidth ); + m_shape = lc; }