Code

use sp_nodepath_make_straight_path in LPE VonKoch
authorjohanengelen <johanengelen@users.sourceforge.net>
Mon, 14 Apr 2008 08:24:11 +0000 (08:24 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Mon, 14 Apr 2008 08:24:11 +0000 (08:24 +0000)
src/live_effects/lpe-vonkoch.cpp

index 159d11428892897f14d0ede8d0719f5cb2a34259..088d576b1aa1c43a059fa94b60fcff013e12fb1f 100644 (file)
@@ -18,6 +18,7 @@
 #include "libnr/n-art-bpath-2geom.h"
 #include "svg/svg.h"
 #include "ui/widget/scalar.h"
+#include "nodepath.h"
 
 #include <2geom/sbasis.h>
 #include <2geom/sbasis-geometric.h>
@@ -41,7 +42,7 @@ void
 VonKochPathParam::param_setup_nodepath(Inkscape::NodePath::Path *np)
 {  
     PathParam::param_setup_nodepath(np);
-    np->straight_path = true;
+    sp_nodepath_make_straight_path(np);
 }
 
 static const Util::EnumData<VonKochRefType> VonKochRefTypeData[VKREF_END] = {