From cbade0853d6168094203eec2ec43ba89208e4f7e Mon Sep 17 00:00:00 2001
From: Ralf Gerlich <ralf.gerlich@custom-scenery.org>
Date: Thu, 20 Dec 2007 19:07:01 +0100
Subject: [PATCH] Minor nudging of polygons to avoid gpc failures

---
 src/Lib/Polygon/polygon.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/Lib/Polygon/polygon.cxx b/src/Lib/Polygon/polygon.cxx
index 2190dd05..8d132d05 100644
--- a/src/Lib/Polygon/polygon.cxx
+++ b/src/Lib/Polygon/polygon.cxx
@@ -325,8 +325,8 @@ void make_gpc_poly( const TGPolygon& in, gpc_polygon *out ) {
 
 	for ( int j = 0; j < in.contour_size( i ); ++j ) {
 	    p = in.get_pt( i, j );
-	    v_list.vertex[j].x = p.x();
-	    v_list.vertex[j].y = p.y();
+	    v_list.vertex[j].x = p.x()+2*SG_EPSILON;
+	    v_list.vertex[j].y = p.y()+2*SG_EPSILON;
 	}
 	v_list.num_vertices = in.contour_size( i );
 	gpc_add_contour( out, &v_list, in.get_hole_flag( i ) );