Revert eeschema highlighting changes

This reverts commit 366d4d7b0b.
This reverts commit 8b3c0a941c.

Fixes https://gitlab.com/kicad/code/kicad/issues/3866
This commit is contained in:
Ian McInerney 2020-02-05 11:50:01 +00:00
parent e35328fece
commit 7ba8d8b608
2 changed files with 1 additions and 11 deletions

View File

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

View File

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