Eeschema: fix crash using tune/probe function in spice simulator.

Fixes #6875
https://gitlab.com/kicad/code/kicad/issues/6875
This commit is contained in:
jean-pierre charras 2020-12-29 13:13:58 +01:00
parent dc28de16d4
commit 77f651639d
1 changed files with 1 additions and 1 deletions

View File

@ -741,7 +741,7 @@ int SCH_EDITOR_CONTROL::SimTune( const TOOL_EVENT& aEvent )
[this]( const VECTOR2D& aPosition )
{
EE_SELECTION_TOOL* selTool = m_toolMgr->GetTool<EE_SELECTION_TOOL>();
EDA_ITEM* item;
EDA_ITEM* item = nullptr;
selTool->SelectPoint( aPosition, fieldsAndComponents, &item );
if( !item )