From: buliabyak Date: Wed, 9 Jul 2008 07:03:41 +0000 (+0000) Subject: move tolerance range towards roughness X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cd48cb2cd7ded6daf3863677bc8160d502b790fb;p=inkscape.git move tolerance range towards roughness --- 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)