Browse Source

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.
pull/13/head
jean-pierre charras 7 years ago
parent
commit
3bf1dd7671
  1. 2
      eeschema/sch_edit_frame.cpp
  2. 1
      eeschema/sch_painter.cpp

2
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();
}

1
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 );

Loading…
Cancel
Save