Some code cleanup to follow kicad style better
This commit is contained in:
parent
6a02ee6c4b
commit
bd8980596f
|
@ -746,15 +746,7 @@ int PCBNEW_CONTROL::AppendBoardFromClipboard( const TOOL_EVENT& aEvent )
|
|||
// or a single module
|
||||
|
||||
PCB_BASE_FRAME* frame = getEditFrame<PCB_BASE_FRAME>();
|
||||
if(frame->IsType( FRAME_PCB) )
|
||||
{
|
||||
|
||||
}
|
||||
else if( frame->IsType( FRAME_PCB_MODULE_EDITOR ) )
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
if( !( frame->IsType( FRAME_PCB ) ) && !( frame->IsType( FRAME_PCB_MODULE_EDITOR ) ) )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@ -1025,9 +1017,10 @@ void PCBNEW_CONTROL::setTransitions()
|
|||
Go( &PCBNEW_CONTROL::ToBeDone, PCB_ACTIONS::toBeDone.MakeEvent() );
|
||||
|
||||
// Append control
|
||||
Go( &PCBNEW_CONTROL::AppendBoardFromFile,PCB_ACTIONS::appendBoard.MakeEvent() );
|
||||
Go( &PCBNEW_CONTROL::AppendBoardFromClipboard
|
||||
,PCB_ACTIONS::appendClipboard.MakeEvent() );
|
||||
Go( &PCBNEW_CONTROL::AppendBoardFromFile,
|
||||
PCB_ACTIONS::appendBoard.MakeEvent() );
|
||||
Go( &PCBNEW_CONTROL::AppendBoardFromClipboard,
|
||||
PCB_ACTIONS::appendClipboard.MakeEvent() );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue