mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Nullptr safety.
This commit is contained in:
parent
09fd6c13e2
commit
31cf3f9b53
@ -1065,7 +1065,7 @@ int EDIT_TOOL::ChangeTrackWidth( const TOOL_EVENT& aEvent )
|
|||||||
|
|
||||||
int EDIT_TOOL::ChangeTrackLayer( const TOOL_EVENT& aEvent )
|
int EDIT_TOOL::ChangeTrackLayer( const TOOL_EVENT& aEvent )
|
||||||
{
|
{
|
||||||
if( m_toolMgr->GetTool<ROUTER_TOOL>()->IsToolActive() )
|
if( m_toolMgr->GetTool<ROUTER_TOOL>() && m_toolMgr->GetTool<ROUTER_TOOL>()->IsToolActive() )
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
bool isNext = aEvent.IsAction( &PCB_ACTIONS::changeTrackLayerNext );
|
bool isNext = aEvent.IsAction( &PCB_ACTIONS::changeTrackLayerNext );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user