Formatting.

This commit is contained in:
Jeff Young 2021-03-07 11:58:11 +00:00
parent d802b4a7af
commit 3ab1ef7b83
1 changed files with 5 additions and 5 deletions

View File

@ -1189,8 +1189,8 @@ bool EE_SELECTION_TOOL::selectMultiple()
if( view->IsMirroredX() ) if( view->IsMirroredX() )
windowSelection = !windowSelection; windowSelection = !windowSelection;
m_frame->GetCanvas()->SetCurrentCursor( m_frame->GetCanvas()->SetCurrentCursor( windowSelection ? KICURSOR::SELECT_WINDOW
windowSelection ? KICURSOR::SELECT_WINDOW : KICURSOR::SELECT_LASSO ); : KICURSOR::SELECT_LASSO );
if( evt->IsCancelInteractive() || evt->IsActivate() ) if( evt->IsCancelInteractive() || evt->IsActivate() )
{ {
@ -1699,12 +1699,12 @@ bool EE_SELECTION_TOOL::doSelectionMenu( EE_COLLECTOR* aCollector )
bool EE_SELECTION_TOOL::Selectable( const EDA_ITEM* aItem, bool checkVisibilityOnly ) const bool EE_SELECTION_TOOL::Selectable( const EDA_ITEM* aItem, bool checkVisibilityOnly ) const
{ {
// NOTE: in the future this is where Eeschema layer/itemtype visibility will be handled // NOTE: in the future this is where Eeschema layer/itemtype visibility will be handled
SYMBOL_EDIT_FRAME* symEditFrame = dynamic_cast< SYMBOL_EDIT_FRAME* >( m_frame );
SYMBOL_EDIT_FRAME* symEditFrame = dynamic_cast<SYMBOL_EDIT_FRAME*>( m_frame );
// Do not allow selection of anything except fields when the current symbol in the symbol // Do not allow selection of anything except fields when the current symbol in the symbol
// editor is a derived symbol. // editor is a derived symbol.
if( symEditFrame && symEditFrame->GetCurPart() && symEditFrame->GetCurPart()->IsAlias() if( symEditFrame && symEditFrame->IsSymbolAlias() && aItem->Type() != LIB_FIELD_T )
&& aItem->Type() != LIB_FIELD_T )
return false; return false;
switch( aItem->Type() ) switch( aItem->Type() )