diff --git a/kicad/tools/kicad_manager_control.cpp b/kicad/tools/kicad_manager_control.cpp index f70f93e0e7..e0c6e98592 100644 --- a/kicad/tools/kicad_manager_control.cpp +++ b/kicad/tools/kicad_manager_control.cpp @@ -2,7 +2,7 @@ * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2019 CERN - * Copyright (C) 2019-2022 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2019-2023 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 as published by the @@ -923,10 +923,10 @@ int KICAD_MANAGER_CONTROL::ShowPluginManager( const TOOL_EVENT& aEvent ) // Reset state containing global lib tables KIFACE* kiface; - if( kiface = kiway.KiFACE( KIWAY::FACE_SCH, false ) ) + if( ( kiface = kiway.KiFACE( KIWAY::FACE_SCH, false ) ) ) kiface->Reset(); - if( kiface = kiway.KiFACE( KIWAY::FACE_PCB, false ) ) + if( ( kiface = kiway.KiFACE( KIWAY::FACE_PCB, false ) ) ) kiface->Reset(); // Reload lib tables