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 )
|
switch( m_type )
|
||||||
{
|
{
|
||||||
case PR_SHAPE:
|
case PR_SHAPE:
|
||||||
bbox = m_shape->BBox();
|
if( m_shape )
|
||||||
bbox.Inflate( m_width / 2 );
|
{
|
||||||
|
bbox = m_shape->BBox();
|
||||||
|
bbox.Inflate( m_width / 2 );
|
||||||
|
}
|
||||||
return bbox;
|
return bbox;
|
||||||
|
|
||||||
case PR_POINT:
|
case PR_POINT:
|
||||||
|
|
Loading…
Reference in New Issue