summaryrefslogtreecommitdiffstats
path: root/src/2geom/basic-intersection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2geom/basic-intersection.cpp')
-rw-r--r--src/2geom/basic-intersection.cpp3
1 files changed, 2 insertions, 1 deletions
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<std::pair<double, double> > &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<double>::iterator new_end = unique(dr.begin(), dr.end());
+ dr.resize( new_end - dr.begin() );
vector<vector<Point> > pieces;
{