Revert eeschema highlighting changes
This reverts commit366d4d7b0b
. This reverts commit8b3c0a941c
. Fixes https://gitlab.com/kicad/code/kicad/issues/3866
This commit is contained in:
parent
e35328fece
commit
7ba8d8b608
|
@ -114,13 +114,6 @@ void SCH_EDIT_FRAME::OnLeftClick( wxDC* aDC, const wxPoint& aPosition )
|
|||
switch( GetToolId() )
|
||||
{
|
||||
case ID_NO_TOOL_SELECTED:
|
||||
if( !item )
|
||||
break;
|
||||
|
||||
// Clear current highlight and highlight the current item
|
||||
GetCanvas()->GetView()->HighlightItem( nullptr, nullptr );
|
||||
GetCanvas()->GetView()->HighlightItem( item, nullptr );
|
||||
GetCanvas()->Refresh();
|
||||
break;
|
||||
|
||||
case ID_ZOOM_SELECTION:
|
||||
|
@ -409,7 +402,7 @@ void SCH_EDIT_FRAME::OnLeftDClick( wxDC* aDC, const wxPoint& aPosition )
|
|||
item = LocateAndShowItem( aPosition, SCH_COLLECTOR::DoubleClickItems );
|
||||
}
|
||||
|
||||
if( ( item == NULL ) || ( ( item->GetFlags() & ~HIGHLIGHTED ) != 0 ) )
|
||||
if( ( item == NULL ) || ( item->GetFlags() != 0 ) )
|
||||
break;
|
||||
|
||||
switch( item->Type() )
|
||||
|
|
|
@ -856,10 +856,7 @@ int PCB_EDITOR_CONTROL::CrossProbePcbToSch( const TOOL_EVENT& aEvent )
|
|||
const SELECTION& selection = selTool->GetSelection();
|
||||
|
||||
if( selection.Size() == 1 )
|
||||
{
|
||||
m_frame->SendMessageToEESCHEMA( nullptr ); // cleaning previous selection
|
||||
m_frame->SendMessageToEESCHEMA( static_cast<BOARD_ITEM*>( selection.Front() ) );
|
||||
}
|
||||
else
|
||||
m_frame->SendMessageToEESCHEMA( nullptr );
|
||||
|
||||
|
|
Loading…
Reference in New Issue