From 64e50f15e4a4fb6ffcd2aa3774f1b0dde990e99f Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Mon, 6 Apr 2009 22:29:34 +0000 Subject: update 2geom. big commit as it has been a while. (2geom svn rev. 1870, i think) i turned some optional compilation stuff *on* per default, to help building inkscape. (bzr r7638) --- src/2geom/path.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/2geom/path.cpp') diff --git a/src/2geom/path.cpp b/src/2geom/path.cpp index 136e6d481..981c9f044 100644 --- a/src/2geom/path.cpp +++ b/src/2geom/path.cpp @@ -290,7 +290,9 @@ double Path::nearestPoint(Point const &_point, double from, double to, double *d } void Path::appendPortionTo(Path &ret, double from, double to) const { - assert(from >= 0 && to >= 0); + if (!(from >= 0 && to >= 0)) { + THROW_RANGEERROR("from and to must be >=0 in Path::appendPortionTo"); + } if(to == 0) to = size()+0.999999; if(from == to) { return; } double fi, ti; -- cgit v1.2.3