From 6bbb9c3c43d7fab9e54b6557c96999257a79b080 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 11 Jul 2008 16:28:14 +0000 Subject: use new 2geom function. This ensures we cannot end up in infinite loop while converting unexpected 2geom curve types to expected types. (bzr r6260) --- src/svg/svg-path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/svg') diff --git a/src/svg/svg-path.cpp b/src/svg/svg-path.cpp index 9c305eebe..1ab70d101 100644 --- a/src/svg/svg-path.cpp +++ b/src/svg/svg-path.cpp @@ -760,7 +760,7 @@ static void sp_svg_write_curve(Inkscape::SVG::PathString & str, Geom::Curve cons str.verticalLineTo( ... ); */ } else { //this case handles sbasis as well as all other curve types - Geom::Path sbasis_path = Geom::path_from_sbasis(c->toSBasis(), 0.1); + Geom::Path sbasis_path = Geom::cubicbezierpath_from_sbasis(c->toSBasis(), 0.1); //recurse to convert the new path resulting from the sbasis to svgd for(Geom::Path::iterator iter = sbasis_path.begin(); iter != sbasis_path.end(); ++iter) { -- cgit v1.2.3