Clear selection before deleting board layers.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15866
This commit is contained in:
parent
8b7af2b545
commit
8d3047d6eb
|
@ -28,6 +28,8 @@
|
|||
#include <core/arraydim.h>
|
||||
#include <core/kicad_algo.h>
|
||||
#include <pcb_edit_frame.h>
|
||||
#include <tool/tool_manager.h>
|
||||
#include <tools/pcb_actions.h>
|
||||
#include <board.h>
|
||||
#include <collectors.h>
|
||||
#include <footprint.h>
|
||||
|
@ -485,6 +487,8 @@ bool PANEL_SETUP_LAYERS::TransferDataFromWindow()
|
|||
|
||||
if( !removedLayers.empty() )
|
||||
{
|
||||
m_frame->GetToolManager()->RunAction( PCB_ACTIONS::selectionClear );
|
||||
|
||||
PCB_LAYER_COLLECTOR collector;
|
||||
|
||||
for( PCB_LAYER_ID layer_id : removedLayers )
|
||||
|
|
Loading…
Reference in New Issue