Changed the macro for left-to-right invariant of the x-polylines

This commit is contained in:
Dror Atariah 2013-06-18 15:24:51 +02:00
parent 06caf04210
commit 2435d1e3e4
1 changed files with 2 additions and 2 deletions

View File

@ -630,7 +630,7 @@ public:
if (it_next == end_seg) {
// The polyline contains a single segment:
#ifdef CGAL_POLYLINE_FIXED_LEFT_TO_RIGHT
#ifdef CGAL_ALWAYS_LEFT_TO_RIGHT
if (m_poly_traits.segment_traits_2()->
compare_endpoints_xy_2_object()(*start_seg) == LARGER) {
Segment_2 seg = m_poly_traits.segment_traits_2()->
@ -672,7 +672,7 @@ public:
// Construct an x-monotone curve from the sub-range which
// was found
#ifdef CGAL_POLYLINE_FIXED_LEFT_TO_RIGHT
#ifdef CGAL_ALWAYS_LEFT_TO_RIGHT
if (comp_endpts_xy(*it_start) == LARGER) {
std::vector<Segment_2> reversed_seg;
std::copy(it_start, it_next, reversed_seg.begin());