From 9abe06fbb7b13c9f5162159f54cb0fef08fce34e Mon Sep 17 00:00:00 2001 From: "Michael G. Sloan" Date: Sat, 18 Aug 2007 02:17:00 +0000 Subject: Fixing a possible segfault in the sbasis to path code (also committed to 2geom)) (bzr r3503) --- src/live_effects/n-art-bpath-2geom.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/live_effects') diff --git a/src/live_effects/n-art-bpath-2geom.cpp b/src/live_effects/n-art-bpath-2geom.cpp index 5f4e4c7b9..e71e28b99 100644 --- a/src/live_effects/n-art-bpath-2geom.cpp +++ b/src/live_effects/n-art-bpath-2geom.cpp @@ -45,8 +45,7 @@ static void curve_to_svgd(std::ostream & f, Geom::Curve const* c) { // } else { //this case handles sbasis as well as all other curve types - Geom::Path sbasis_path; - path_from_sbasis(sbasis_path, c->sbasis(), 0.1); + Geom::Path sbasis_path = path_from_sbasis(sbasis_path, c->sbasis(), 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