Browse Source

pcbnew: Only regenerate BBox if the item is valid

Items removed from the connectivity list will not have valid parents, so
we cannot update the BBox, thus we will only use the cached value.

Fixes: lp:1785605
* https://bugs.launchpad.net/kicad/+bug/1785605
pull/13/head
Seth Hillbrand 7 years ago
parent
commit
5cd7549e53
  1. 2
      pcbnew/connectivity_algo.h

2
pcbnew/connectivity_algo.h

@ -393,7 +393,7 @@ public:
const BOX2I& BBox()
{
if( m_dirty )
if( m_dirty && m_valid )
{
EDA_RECT box = m_parent->GetBoundingBox();
m_bbox = BOX2I( box.GetPosition(), box.GetSize() );

Loading…
Cancel
Save