Browse Source

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
6.0.7
Seth Hillbrand 4 years ago
parent
commit
c1dcfdffb1
  1. 2
      pcbnew/pcb_edit_frame.cpp

2
pcbnew/pcb_edit_frame.cpp

@ -581,8 +581,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() ) );

Loading…
Cancel
Save