~centralelyon2010/inkscape/imagelinks2

« back to all changes in this revision

Viewing changes to src/pencil-context.cpp

  • Committer: cilix42
  • Date: 2008-09-18 17:48:42 UTC
  • Revision ID: cilix42@users.sourceforge.net-20080918174842-1ad33a7d7gqhv2hq
Next roud of NR ==> Geom conversion

Show diffs side-by-side

added added

removed removed

Lines of Context:
634
634
    g_assert( pc->npoints > 1 );
635
635
 
636
636
    double const tol = prefs_get_double_attribute_limited("tools.freehand.pencil",                                                                             "tolerance", 10.0, 1.0, 100.0);
637
 
    double const tolerance_sq = 0.02 * square( NR::expansion(pc->desktop->w2d()) * tol) 
 
637
    double const tolerance_sq = 0.02 * square( pc->desktop->w2d().descrim() * tol) 
638
638
        * exp(0.2*tol - 2);
639
639
 
640
640
    Geom::Point b[4];