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:
parent
3c8e35249c
commit
e4590e4762
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue