From eccb6d13889983090e1c8b6e0c0e313a435f81af Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Thu, 6 Sep 2012 22:33:36 +0200 Subject: [PATCH] Fix for a genapts810 segfault in conjunction with clipper use --- src/Airports/GenAirports/taxiway.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Airports/GenAirports/taxiway.cxx b/src/Airports/GenAirports/taxiway.cxx index adc9baf0..c36a816b 100644 --- a/src/Airports/GenAirports/taxiway.cxx +++ b/src/Airports/GenAirports/taxiway.cxx @@ -26,6 +26,8 @@ #include #include +#include + #include "rwy_common.hxx" #include "taxiway.hxx" @@ -52,6 +54,7 @@ void gen_taxiway( const TGRunway& rwy_info, runway_a.add_node( 0, runway.get_pt(0, 1) ); runway_a.add_node( 0, runway.get_pt(0, 2) ); runway_a.add_node( 0, runway.get_pt(0, 5) ); + runway_a = snap( runway_a, 0.00000001 ); // runway half "b" TGPolygon runway_b; @@ -60,6 +63,7 @@ void gen_taxiway( const TGRunway& rwy_info, runway_b.add_node( 0, runway.get_pt(0, 2) ); runway_b.add_node( 0, runway.get_pt(0, 3) ); runway_b.add_node( 0, runway.get_pt(0, 4) ); + runway_b = snap( runway_b, 0.00000001 ); Point3D p; SG_LOG(SG_GENERAL, SG_DEBUG, "raw runway pts (a half)");