From ebdc68ac1d7bef6259a8253d9f7c0c63fa810d3a Mon Sep 17 00:00:00 2001 From: Tomasz Wlostowski Date: Thu, 11 Feb 2021 23:08:02 +0100 Subject: [PATCH] router: correctly handle line width in PREVIEW_ITEMs --- pcbnew/router/router_preview_item.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; }