summaryrefslogtreecommitdiffstats
path: root/src/2geom/bezier-utils.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2014-01-12 23:25:39 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2014-01-12 23:25:39 +0000
commit5eb9b4815a12cc0dafd07905f7715a7e15a92b41 (patch)
treef39f5ae5a40012fa010402611d2b133553c22335 /src/2geom/bezier-utils.cpp
parentLPE: rename function getHelperPaths --> getCanvasIndicators (the function is ... (diff)
downloadinkscape-5eb9b4815a12cc0dafd07905f7715a7e15a92b41.tar.gz
inkscape-5eb9b4815a12cc0dafd07905f7715a7e15a92b41.zip
update 2geom's copy to r2142
(bzr r12921)
Diffstat (limited to 'src/2geom/bezier-utils.cpp')
-rw-r--r--src/2geom/bezier-utils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/2geom/bezier-utils.cpp b/src/2geom/bezier-utils.cpp
index af07db707..ec17f6869 100644
--- a/src/2geom/bezier-utils.cpp
+++ b/src/2geom/bezier-utils.cpp
@@ -194,8 +194,6 @@ bezier_fit_cubic_full(Point bezier[], int split_points[],
Point const &tHat1, Point const &tHat2,
double const error, unsigned const max_beziers)
{
- int const maxIterations = 4; /* std::max times to try iterating */
-
if(!(bezier != NULL) ||
!(data != NULL) ||
!(len > 0) ||
@@ -257,6 +255,7 @@ bezier_fit_cubic_full(Point bezier[], int split_points[],
/* If error not too large, then try some reparameterization and iteration. */
if ( 0.0 <= maxErrorRatio && maxErrorRatio <= 3.0 ) {
+ int const maxIterations = 4; /* std::max times to try iterating */
for (int i = 0; i < maxIterations; i++) {
generate_bezier(bezier, data, u, len, tHat1, tHat2, error);
reparameterize(data, len, u, bezier);