From 3ab1ef7b83e2794b534dc4442ab6524bc1515bf5 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 7 Mar 2021 11:58:11 +0000 Subject: [PATCH] Formatting. --- eeschema/tools/ee_selection_tool.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/eeschema/tools/ee_selection_tool.cpp b/eeschema/tools/ee_selection_tool.cpp index 6b137db476..a540c33fba 100644 --- a/eeschema/tools/ee_selection_tool.cpp +++ b/eeschema/tools/ee_selection_tool.cpp @@ -1189,8 +1189,8 @@ bool EE_SELECTION_TOOL::selectMultiple() if( view->IsMirroredX() ) windowSelection = !windowSelection; - m_frame->GetCanvas()->SetCurrentCursor( - windowSelection ? KICURSOR::SELECT_WINDOW : KICURSOR::SELECT_LASSO ); + m_frame->GetCanvas()->SetCurrentCursor( windowSelection ? KICURSOR::SELECT_WINDOW + : KICURSOR::SELECT_LASSO ); 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 { // 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( m_frame ); // Do not allow selection of anything except fields when the current symbol in the symbol // editor is a derived symbol. - if( symEditFrame && symEditFrame->GetCurPart() && symEditFrame->GetCurPart()->IsAlias() - && aItem->Type() != LIB_FIELD_T ) + if( symEditFrame && symEditFrame->IsSymbolAlias() && aItem->Type() != LIB_FIELD_T ) return false; switch( aItem->Type() )