From: jfbarraud Date: Mon, 9 Mar 2009 23:36:56 +0000 (+0000) Subject: update from 2geom (bug fix) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=38fbda5b813fda17e957900f9dfdeb19a120631e;p=inkscape.git update from 2geom (bug fix) --- 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; {