Some code cleanup to follow kicad style better

This commit is contained in:
Kristoffer Ödmark 2017-05-21 22:18:22 +02:00 committed by Tomasz Włostowski
parent 6a02ee6c4b
commit bd8980596f
3 changed files with 13 additions and 20 deletions

View File

@ -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() );
}