diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-12-10 18:57:09 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-12-10 18:57:09 +0000 |
| commit | 85ff7c359db68a7a6952aac0034e79595a8e20be (patch) | |
| tree | d4e683126d3cb84d82d3600d68c1dae1f9e8ee43 /src/eraser-context.cpp | |
| parent | nodepath: use 2geom bezier fitting (is copy of inkscape's) (diff) | |
| download | inkscape-85ff7c359db68a7a6952aac0034e79595a8e20be.tar.gz inkscape-85ff7c359db68a7a6952aac0034e79595a8e20be.zip | |
use 2geom bezier fitting (is copy of inkscape's)
(bzr r6983)
Diffstat (limited to 'src/eraser-context.cpp')
| -rw-r--r-- | src/eraser-context.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eraser-context.cpp b/src/eraser-context.cpp index 17e69c6ac..8854dbcec 100644 --- a/src/eraser-context.cpp +++ b/src/eraser-context.cpp @@ -34,7 +34,7 @@ #include "svg/svg.h" #include "display/canvas-bpath.h" -#include "display/bezier-utils.h" +#include <2geom/bezier-utils.h> #include <glib/gmem.h> #include "macros.h" @@ -943,12 +943,12 @@ fit_and_split(SPEraserContext *dc, gboolean release) } Geom::Point b1[BEZIER_MAX_LENGTH]; - gint const nb1 = sp_bezier_fit_cubic_r(b1, dc->point1, dc->npoints, + gint const nb1 = Geom::bezier_fit_cubic_r(b1, dc->point1, dc->npoints, tolerance_sq, BEZIER_MAX_BEZIERS); g_assert( nb1 * BEZIER_SIZE <= gint(G_N_ELEMENTS(b1)) ); Geom::Point b2[BEZIER_MAX_LENGTH]; - gint const nb2 = sp_bezier_fit_cubic_r(b2, dc->point2, dc->npoints, + gint const nb2 = Geom::bezier_fit_cubic_r(b2, dc->point2, dc->npoints, tolerance_sq, BEZIER_MAX_BEZIERS); g_assert( nb2 * BEZIER_SIZE <= gint(G_N_ELEMENTS(b2)) ); |
