diff --git a/common/tool/tools_holder.cpp b/common/tool/tools_holder.cpp index 5a5a9d378f..901e080c97 100644 --- a/common/tool/tools_holder.cpp +++ b/common/tool/tools_holder.cpp @@ -1,7 +1,7 @@ /* * This program source code file is part of KiCad, a free EDA CAD application. * - * Copyright (C) 2020-2021 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2020-2022 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -127,8 +127,11 @@ bool TOOLS_HOLDER::IsCurrentTool( const TOOL_ACTION& aAction ) const void TOOLS_HOLDER::ShowChangedLanguage() { + if( !GetToolManager() ) + return; + std::string actionName = CurrentToolName(); - TOOL_ACTION* action = m_toolManager->GetActionManager()->FindAction( actionName ); + TOOL_ACTION* action = GetToolManager()->GetActionManager()->FindAction( actionName ); if( action ) DisplayToolMsg( action->GetLabel() );