$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r61915 - sandbox/gtl/boost/polygon
From: lucanus.j.simonson_at_[hidden]
Date: 2010-05-11 13:15:15
Author: ljsimons
Date: 2010-05-11 13:15:14 EDT (Tue, 11 May 2010)
New Revision: 61915
URL: http://svn.boost.org/trac/boost/changeset/61915
Log:
fix for polygon contains point bug
Text files modified: 
   sandbox/gtl/boost/polygon/polygon_traits.hpp |     6 ++++++                                  
   1 files changed, 6 insertions(+), 0 deletions(-)
Modified: sandbox/gtl/boost/polygon/polygon_traits.hpp
==============================================================================
--- sandbox/gtl/boost/polygon/polygon_traits.hpp	(original)
+++ sandbox/gtl/boost/polygon/polygon_traits.hpp	2010-05-11 13:15:14 EDT (Tue, 11 May 2010)
@@ -1347,6 +1347,12 @@
           int oabedge = edge_utils<Unit>::on_above_or_below(tmppt, he);
           if(oabedge == 0) return consider_touch;
           if(oabedge == 1) ++above;
+        } else if(x(point) == xmax) {
+          Point tmppt;
+          assign(tmppt, point);
+          if( edge_utils<Unit>::on_above_or_below(tmppt, he) == 0 ) {
+            return consider_touch;
+          }
         }
       }
       he.first = he.second;