Gerbview: fix incorrect bounding box of lines drawn with a rectangular aperture.
See master, commit 5abe25
This commit is contained in:
parent
190223949c
commit
16fff71c31
|
@ -371,6 +371,9 @@ const EDA_RECT GERBER_DRAW_ITEM::GetBoundingBox() const
|
|||
{
|
||||
if( code && code->m_Shape == APT_RECT )
|
||||
{
|
||||
if( m_Polygon.OutlineCount() == 0 )
|
||||
ConvertSegmentToPolygon();
|
||||
|
||||
if( m_Polygon.OutlineCount() > 0 )
|
||||
{
|
||||
auto bb = m_Polygon.BBox();
|
||||
|
|
Loading…
Reference in New Issue