summaryrefslogtreecommitdiffstats
path: root/src/live_effects
diff options
context:
space:
mode:
authorMichael G. Sloan <mgsloan@gmail.com>2007-08-18 02:17:00 +0000
committermgsloan <mgsloan@users.sourceforge.net>2007-08-18 02:17:00 +0000
commit9abe06fbb7b13c9f5162159f54cb0fef08fce34e (patch)
tree0850bce022b63a7b7a9be50eae1d3b10b517dd86 /src/live_effects
parentfew changes in import from ocal dialog (diff)
downloadinkscape-9abe06fbb7b13c9f5162159f54cb0fef08fce34e.tar.gz
inkscape-9abe06fbb7b13c9f5162159f54cb0fef08fce34e.zip
Fixing a possible segfault in the sbasis to path code (also committed to 2geom))
(bzr r3503)
Diffstat (limited to 'src/live_effects')
-rw-r--r--src/live_effects/n-art-bpath-2geom.cpp3
1 files changed, 1 insertions, 2 deletions
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) {