From 5248f2952ea1a6cc440c7847857863dd4c02615b Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Tue, 19 May 2020 23:39:15 -0400 Subject: [PATCH] Use schematic default line width for GetPenWidth on zero-size lines --- eeschema/sch_line.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eeschema/sch_line.cpp b/eeschema/sch_line.cpp index 9b63a9fcf6..df661f31b1 100644 --- a/eeschema/sch_line.cpp +++ b/eeschema/sch_line.cpp @@ -41,6 +41,7 @@ #include #include #include +#include static wxPenStyle getwxPenStyle( PLOT_DASH_TYPE aType ) @@ -292,6 +293,9 @@ void SCH_LINE::SetLineWidth( const int aSize ) int SCH_LINE::GetPenWidth() const { + if( m_size == 0 && Schematic() ) + return std::max( Schematic()->Settings().m_DefaultLineWidth, 1 ); + return std::max( m_size, 1 ); }