diff --git a/eeschema/sch_no_connect.cpp b/eeschema/sch_no_connect.cpp index 0d41ef5aa4..da61affa9f 100644 --- a/eeschema/sch_no_connect.cpp +++ b/eeschema/sch_no_connect.cpp @@ -97,6 +97,9 @@ void SCH_NO_CONNECT::GetEndPoints( std::vector< DANGLING_END_ITEM >& aItemList ) int SCH_NO_CONNECT::GetPenWidth() const { + if( !Schematic() ) + return 1; + return std::max( Schematic()->Settings().m_DefaultLineWidth, 1 ); }