Fix segfault when routing.
Fixes: lp:1792037 * https://bugs.launchpad.net/kicad/+bug/1792037
This commit is contained in:
parent
58916a200e
commit
46426f1196
|
@ -130,8 +130,11 @@ const BOX2I ROUTER_PREVIEW_ITEM::ViewBBox() const
|
|||
switch( m_type )
|
||||
{
|
||||
case PR_SHAPE:
|
||||
if( m_shape )
|
||||
{
|
||||
bbox = m_shape->BBox();
|
||||
bbox.Inflate( m_width / 2 );
|
||||
}
|
||||
return bbox;
|
||||
|
||||
case PR_POINT:
|
||||
|
|
Loading…
Reference in New Issue