From a4873a16664bf6239f15ce35afa8dfa9703df5bd Mon Sep 17 00:00:00 2001 From: bulia byak Date: Wed, 9 Jul 2008 07:03:41 +0000 Subject: move tolerance range towards roughness (bzr r6244) --- src/pencil-context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pencil-context.cpp') 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) -- cgit v1.2.3