From da061718e5064ef8d1a09297d8958025451c5931 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 25 May 2018 12:20:11 -0700 Subject: [PATCH] Remove constraint on circle Allows circle radius to snap to arbitrary points while editing Fixes: lp:1773436 * https://bugs.launchpad.net/kicad/+bug/1773436 --- pcbnew/tools/drawing_tool.cpp | 3 --- pcbnew/tools/point_editor.cpp | 5 ----- 2 files changed, 8 deletions(-) diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index 93b3eb5642..0c771879a9 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -1071,9 +1071,6 @@ bool DRAWING_TOOL::drawSegment( int aShape, DRAWSEGMENT*& aGraphic, // 45 degree lines if( direction45 && aShape == S_SEGMENT ) make45DegLine( aGraphic, &line45 ); - else if( aShape == S_CIRCLE ) - aGraphic->SetEnd( aGraphic->GetStart() + wxPoint( - EuclideanNorm( wxPoint( cursorPos - aGraphic->GetStart() ) ), 0 ) ); else aGraphic->SetEnd( wxPoint( cursorPos.x, cursorPos.y ) ); diff --git a/pcbnew/tools/point_editor.cpp b/pcbnew/tools/point_editor.cpp index 3c6dd10b7c..b9975c2e2d 100644 --- a/pcbnew/tools/point_editor.cpp +++ b/pcbnew/tools/point_editor.cpp @@ -165,11 +165,6 @@ public: points->AddPoint( segment->GetCenter() ); points->AddPoint( segment->GetEnd() ); - // Set constraints - // Circle end is on the horizontal axis with the center - points->Point( CIRC_END ).SetConstraint( - new EC_HORIZONTAL( points->Point( CIRC_END ), - points->Point( CIRC_CENTER ) ) ); break; case S_POLYGON: