From 3bf1dd767106029073ef9d7c3cc1478e25850b79 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 25 Oct 2018 15:12:34 +0200 Subject: [PATCH] Eeschema, Hierarchical sheet: fix missing pen width call in draw function. The hierarchical sheet was drawn (outline and texts) with a line thickness that in fact the line thickness of the previously drawn item. --- eeschema/sch_edit_frame.cpp | 2 ++ eeschema/sch_painter.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index a2515b5433..c017780b70 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -1454,6 +1454,7 @@ void SCH_EDIT_FRAME::addCurrentItemToScreen() { std::vector< wxPoint > pts; item->GetConnectionPoints( pts ); + for( auto i = pts.begin(); i != pts.end(); i++ ) { for( auto j = i + 1; j != pts.end(); j++ ) @@ -1462,6 +1463,7 @@ void SCH_EDIT_FRAME::addCurrentItemToScreen() if( screen->IsJunctionNeeded( *i, true ) ) AddJunction( *i, true ); } + TestDanglingEnds(); } diff --git a/eeschema/sch_painter.cpp b/eeschema/sch_painter.cpp index e8d3084148..fcdfa5968d 100644 --- a/eeschema/sch_painter.cpp +++ b/eeschema/sch_painter.cpp @@ -1246,6 +1246,7 @@ void SCH_PAINTER::draw( SCH_SHEET *aSheet, int aLayer ) m_gal->SetIsStroke( true ); m_gal->SetIsFill( false ); + m_gal->SetLineWidth( aSheet->GetPenSize() ); m_gal->DrawRectangle( pos, pos + size );