Code

nodepath: use 2geom bezier fitting (is copy of inkscape's)
authorjohanengelen <johanengelen@users.sourceforge.net>
Wed, 10 Dec 2008 18:52:07 +0000 (18:52 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Wed, 10 Dec 2008 18:52:07 +0000 (18:52 +0000)
src/nodepath.cpp

index 5a13588ab20235132cc95e4c380ee68b843e33e8..1dcf3ed459400f66887698c9716d4a7a6606d042 100644 (file)
@@ -48,7 +48,7 @@
 #include "libnr/nr-matrix-ops.h"
 #include "svg/svg.h"
 #include "verbs.h"
-#include "display/bezier-utils.h"
+#include <2geom/bezier-utils.h>
 #include <vector>
 #include <algorithm>
 #include <cstring>
@@ -2529,7 +2529,7 @@ void sp_node_delete_preserve(GList *nodes_to_delete)
             //would decreasing error create a better fitting approximation?
             gdouble error = 1.0;
             gint ret;
-            ret = sp_bezier_fit_cubic (bez, adata, data.size(), error);
+            ret = Geom::bezier_fit_cubic (bez, adata, data.size(), error);
 
             //if these nodes are smooth or symmetrical, the endpoints will be thrown out of sync.
             //make sure these nodes are changed to cusp nodes so that, once the endpoints are moved,