Make sure SCH_GLOBALLABEL's bounding box includes its intersheet ref.

Fixes https://gitlab.com/kicad/code/kicad/issues/7819
This commit is contained in:
Jeff Young 2021-03-09 12:05:40 +00:00
parent 3c8e35249c
commit e4590e4762
1 changed files with 3 additions and 0 deletions

View File

@ -1338,6 +1338,9 @@ const EDA_RECT SCH_GLOBALLABEL::GetBoundingBox() const
}
EDA_RECT box( wxPoint( x, y ), wxSize( dx, dy ) );
box.Merge( m_intersheetRefsField.GetBoundingBox() );
box.Normalize();
return box;
}