From 38fbda5b813fda17e957900f9dfdeb19a120631e Mon Sep 17 00:00:00 2001 From: jfbarraud Date: Mon, 9 Mar 2009 23:36:56 +0000 Subject: [PATCH] update from 2geom (bug fix) --- src/2geom/basic-intersection.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/2geom/basic-intersection.cpp b/src/2geom/basic-intersection.cpp index c03023e6f..0c8b96ddf 100644 --- a/src/2geom/basic-intersection.cpp +++ b/src/2geom/basic-intersection.cpp @@ -97,7 +97,8 @@ find_self_intersections(std::vector > &xs, dr.push_back(1); // We want to be sure that we have no empty segments sort(dr.begin(), dr.end()); - unique(dr.begin(), dr.end()); + vector::iterator new_end = unique(dr.begin(), dr.end()); + dr.resize( new_end - dr.begin() ); vector > pieces; { -- 2.30.2