pcbnew: avoid segfault reported on certain OSX builds
Fixes: lp:1732274 * https://bugs.launchpad.net/kicad/+bug/1732274
This commit is contained in:
parent
aab4c59615
commit
44d4559f84
|
@ -117,7 +117,7 @@ bool ROUTER::RoutingInProgress() const
|
||||||
|
|
||||||
const ITEM_SET ROUTER::QueryHoverItems( const VECTOR2I& aP )
|
const ITEM_SET ROUTER::QueryHoverItems( const VECTOR2I& aP )
|
||||||
{
|
{
|
||||||
if( m_state == IDLE )
|
if( m_state == IDLE || m_placer == nullptr )
|
||||||
return m_world->HitTest( aP );
|
return m_world->HitTest( aP );
|
||||||
else
|
else
|
||||||
return m_placer->CurrentNode()->HitTest( aP );
|
return m_placer->CurrentNode()->HitTest( aP );
|
||||||
|
|
Loading…
Reference in New Issue