From 6ab3e65a36b796962b24dc35c9e20e029e2a322f Mon Sep 17 00:00:00 2001 From: John Ellson Date: Thu, 24 Nov 2016 14:23:52 -0500 Subject: [PATCH] Revert "Fix: shape coordinates close to 0 now absolutely 0" This reverts commit a55127dbe7d5557eeb019e1ed50fae16f84c2547. --- lib/common/shapes.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/lib/common/shapes.c b/lib/common/shapes.c index 733ccb42d..61e4fe196 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -2888,18 +2888,7 @@ static void poly_gencode(GVJ_t * job, node_t * n) for (i = 0; i < sides; i++) { P = vertices[i + j * sides]; AF[i].x = P.x * xsize + ND_coord(n).x; - AF[i].y = P.y * ysize + ND_coord(n).y; - - // Set values that are close to zero, to absolute zero. - // This prevents coördinates like 7.10543e-15 - if (AF[i].x > -0.00001 && AF[i].x < 0.00001) - { - AF[i].x = 0; - } - if (AF[i].y > -0.00001 && AF[i].y < 0.00001) - { - AF[i].y = 0; - } + AF[i].y = P.y * ysize + ND_coord(n).y; } if (sides <= 2) { if ((style & WEDGED) && (j == 0) && multicolor(fillcolor)) { -- 2.40.0