diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-07-15 07:13:00 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-07-15 07:13:00 +0000 |
| commit | dc964d78d9cbdd2b4a4bdc7f146342344113af92 (patch) | |
| tree | de3a69896e16e3b206996592d0a25d360e905126 /src/pencil-context.cpp | |
| parent | Fixed layers dialog to correctly fetch icons from new location/code. (diff) | |
| download | inkscape-dc964d78d9cbdd2b4a4bdc7f146342344113af92.tar.gz inkscape-dc964d78d9cbdd2b4a4bdc7f146342344113af92.zip | |
make tolerance range exponential
(bzr r6315)
Diffstat (limited to 'src/pencil-context.cpp')
| -rw-r--r-- | src/pencil-context.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp index 20d1c113d..397a5a0ff 100644 --- a/src/pencil-context.cpp +++ b/src/pencil-context.cpp @@ -626,9 +626,9 @@ fit_and_split(SPPencilContext *pc) { g_assert( pc->npoints > 1 ); - double const tolerance_sq = 0.02 * square( NR::expansion(pc->desktop->w2d()) - * prefs_get_double_attribute_limited("tools.freehand.pencil", - "tolerance", 10.0, 1.0, 100.0) ); + double const tol = prefs_get_double_attribute_limited("tools.freehand.pencil", "tolerance", 10.0, 1.0, 100.0); + double const tolerance_sq = 0.02 * square( NR::expansion(pc->desktop->w2d()) * tol) + * exp(0.2*tol - 2); NR::Point b[4]; g_assert(is_zero(pc->req_tangent) |
