summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c1d697e)
raw | patch | inline | side by side (parent: c1d697e)
author | jfbarraud <jfbarraud@users.sourceforge.net> | |
Mon, 9 Mar 2009 23:36:56 +0000 (23:36 +0000) | ||
committer | jfbarraud <jfbarraud@users.sourceforge.net> | |
Mon, 9 Mar 2009 23:36:56 +0000 (23:36 +0000) |
src/2geom/basic-intersection.cpp | patch | blob | history |
index c03023e6fecddbb8bb952e521f1664ff7ae69526..0c8b96ddff3084f28449044dfb253889172f8aa0 100644 (file)
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;
{