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:
parent
90233e5ec6
commit
3bf1dd7671
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue