diff options
| author | bulia byak <buliabyak@gmail.com> | 2008-07-09 07:03:41 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2008-07-09 07:03:41 +0000 |
| commit | a4873a16664bf6239f15ce35afa8dfa9703df5bd (patch) | |
| tree | 2f920d08550cc69b36e02b1611f26e8b328d2053 /src/pencil-context.cpp | |
| parent | tolerance => smoothing, add presets (diff) | |
| download | inkscape-a4873a16664bf6239f15ce35afa8dfa9703df5bd.tar.gz inkscape-a4873a16664bf6239f15ce35afa8dfa9703df5bd.zip | |
move tolerance range towards roughness
(bzr r6244)
Diffstat (limited to 'src/pencil-context.cpp')
| -rw-r--r-- | src/pencil-context.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pencil-context.cpp b/src/pencil-context.cpp index e4c79bfdc..20d1c113d 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 = square( NR::expansion(pc->desktop->w2d()) + 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) ); + "tolerance", 10.0, 1.0, 100.0) ); NR::Point b[4]; g_assert(is_zero(pc->req_tangent) |
