eeschema: Don't warp before processing right-click

The logic handling the two bug reports attached to this code is now
higher up in the chain.  As it stood, warping before right-click meant
that we cannot affect any point on the wire that is not an endpoint.
This commit is contained in:
Seth Hillbrand 2019-10-17 07:49:49 -07:00
parent b81b7decf6
commit 0c8b3aaced
1 changed files with 0 additions and 11 deletions

View File

@ -148,17 +148,6 @@ bool SCH_EDIT_FRAME::OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu )
// If the clarify item selection context menu is aborted, don't show the context menu.
if( item == NULL && actionCancelled )
return false;
if( item )
{
SCH_LINE* line = dynamic_cast<SCH_LINE*>( item );
// The schematic lines have two possible points to use
if( line )
SetCrossHairPosition( line->GetClosestPoint( aPosition ), false );
else
SetCrossHairPosition( item->GetPosition(), false );
}
}
// If a command is in progress: add "cancel" and "end tool" menu