Gerbview: fix incorrect reload command.

Fixes #7316
https://gitlab.com/kicad/code/kicad/issues/7316
This commit is contained in:
jean-pierre charras 2021-01-29 11:10:26 +01:00
parent 30ba3aa240
commit 8aac6cb607
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) 2017 Jon Evans <jon@craftyjon.com>
* Copyright (C) 2017-2019 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2017-2021 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
@ -323,7 +323,8 @@ int GERBVIEW_CONTROL::ReloadAllLayers( const TOOL_EVENT& aEvent )
}
// Clear all layers
m_toolMgr->RunAction( GERBVIEW_ACTIONS::clearAllLayers, true );
m_frame->Clear_DrawLayers( false );
m_frame->ClearMsgPanel();
// Load the layers from stored paths
wxBusyCursor wait;