From e53fa2dda67262d75d2221701396eead7addc295 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 12 Jan 2018 08:43:33 -0800 Subject: [PATCH] Partially revert 316ddad that added warnings but no functionality Fixes: lp:1742978 * https://bugs.launchpad.net/kicad/+bug/1742978 --- polygon/poly2tri/common/shapes.cc | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/polygon/poly2tri/common/shapes.cc b/polygon/poly2tri/common/shapes.cc index e2a5922452..5ad7fabe6a 100644 --- a/polygon/poly2tri/common/shapes.cc +++ b/polygon/poly2tri/common/shapes.cc @@ -119,12 +119,17 @@ void Triangle::ClearDelunayEdges() Point* Triangle::OppositePoint(Triangle& t, Point& p) { - Point *cw = t.PointCW(p); - double x = cw->x; - double y = cw->y; - x = p.x; - y = p.y; - return PointCW(*cw); + Point* cw = t.PointCW( p ); + + /* + double x = cw->x; + double y = cw->y; + + x = p.x; + y = p.y; + */ + + return PointCW( *cw ); } // Legalized triangle by rotating clockwise around point(0)