summaryrefslogtreecommitdiffstats
path: root/src/2geom/basic-intersection.cpp
diff options
context:
space:
mode:
authorJF Barraud <jf.barraud@gmail.com>2009-03-09 23:36:56 +0000
committerjfbarraud <jfbarraud@users.sourceforge.net>2009-03-09 23:36:56 +0000
commit6dae5691b5339a810c7483f15580a966558d8fc8 (patch)
treef43a28e096c206d8d44c63e44d0b5025eb6eae70 /src/2geom/basic-intersection.cpp
parentfix crash when switching away from pattern (237104 and others) (diff)
downloadinkscape-6dae5691b5339a810c7483f15580a966558d8fc8.tar.gz
inkscape-6dae5691b5339a810c7483f15580a966558d8fc8.zip
update from 2geom (bug fix)
(bzr r7463)
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;
{