From e7673f7198ac59834ade37bce085f2567d03fcfb Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 3 Mar 2022 15:44:01 -0800 Subject: [PATCH] Remove unneeded condition to rotate The condition that the board must have elements on it before allowing the rotate command is invalid as we allow rotating new elements before placement Fixes https://gitlab.com/kicad/code/kicad/issues/10581 (cherry picked from commit c1dcfdffb18e0de572120e25e3e356ed369320c3) --- pcbnew/pcb_edit_frame.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index 8021df7032..7c85dc3356 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/pcbnew/pcb_edit_frame.cpp @@ -624,8 +624,6 @@ void PCB_EDIT_FRAME::setupUIConditions() return false; }; - mgr->SetConditions( PCB_ACTIONS::rotateCw, ENABLE( cond.HasItems() ) ); - mgr->SetConditions( PCB_ACTIONS::rotateCcw, ENABLE( cond.HasItems() ) ); mgr->SetConditions( PCB_ACTIONS::group, ENABLE( SELECTION_CONDITIONS::MoreThan( 1 ) ) ); mgr->SetConditions( PCB_ACTIONS::ungroup, ENABLE( haveAtLeastOneGroupCond ) ); mgr->SetConditions( PCB_ACTIONS::lock, ENABLE( cond.HasItems() ) );