Fix crash in Eeschema when clicking on a menubar item.

It happens if an other frame (libedit) was opened, a menubar clicked, an this frame was closed.
This commit is contained in:
jean-pierre charras 2019-05-23 13:28:56 +02:00
parent 300f5cb082
commit 83e08c9277
1 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2013-2017 CERN
* Copyright (C) 2013-2019 KiCad Developers, see CHANGELOG.txt for contributors.
* Copyright (C) 2013-2019 KiCad Developers, see AUTHORS.txt for contributors.
* @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
* @author Maciej Suminski <maciej.suminski@cern.ch>
*
@ -417,6 +417,7 @@ void ACTION_MENU::OnMenuEvent( wxMenuEvent& aEvent )
if( evt && m_tool )
{
//aEvent.StopPropagation();
if( m_tool->GetManager() )
m_tool->GetManager()->ProcessEvent( *evt );
}
else