From 0c8b3aaced0d4290253bd54568c925094411b4e9 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Thu, 17 Oct 2019 07:49:49 -0700 Subject: [PATCH] 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. --- eeschema/onrightclick.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/eeschema/onrightclick.cpp b/eeschema/onrightclick.cpp index 90c227438d..3bccd4d1e4 100644 --- a/eeschema/onrightclick.cpp +++ b/eeschema/onrightclick.cpp @@ -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( 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