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.
This commit is contained in:
jean-pierre charras 2018-10-25 15:12:34 +02:00
parent 90233e5ec6
commit 3bf1dd7671
2 changed files with 3 additions and 0 deletions

View File

@ -1454,6 +1454,7 @@ void SCH_EDIT_FRAME::addCurrentItemToScreen()
{ {
std::vector< wxPoint > pts; std::vector< wxPoint > pts;
item->GetConnectionPoints( pts ); item->GetConnectionPoints( pts );
for( auto i = pts.begin(); i != pts.end(); i++ ) for( auto i = pts.begin(); i != pts.end(); i++ )
{ {
for( auto j = i + 1; j != pts.end(); j++ ) for( auto j = i + 1; j != pts.end(); j++ )
@ -1462,6 +1463,7 @@ void SCH_EDIT_FRAME::addCurrentItemToScreen()
if( screen->IsJunctionNeeded( *i, true ) ) if( screen->IsJunctionNeeded( *i, true ) )
AddJunction( *i, true ); AddJunction( *i, true );
} }
TestDanglingEnds(); TestDanglingEnds();
} }

View File

@ -1246,6 +1246,7 @@ void SCH_PAINTER::draw( SCH_SHEET *aSheet, int aLayer )
m_gal->SetIsStroke( true ); m_gal->SetIsStroke( true );
m_gal->SetIsFill( false ); m_gal->SetIsFill( false );
m_gal->SetLineWidth( aSheet->GetPenSize() );
m_gal->DrawRectangle( pos, pos + size ); m_gal->DrawRectangle( pos, pos + size );