diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2008-11-23 13:55:26 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2008-11-23 13:55:26 +0000 |
| commit | 6b8572be4bdae9ee79fc42c9d18fd9882dec21aa (patch) | |
| tree | ccfc4f2203495ee82127b0cb596f23a9d9f48803 /src/context-fns.cpp | |
| parent | Updating the includes on these files because they need to include simple-node... (diff) | |
| download | inkscape-6b8572be4bdae9ee79fc42c9d18fd9882dec21aa.tar.gz inkscape-6b8572be4bdae9ee79fc42c9d18fd9882dec21aa.zip | |
1) Improve the way the distance to the pointer is taken into account when finding the best snap
2) Use this distance also when snapping nodes in the path editor
3) Add a slider in the preferences dialog to control the weighing of this distance
(bzr r6895)
Diffstat (limited to 'src/context-fns.cpp')
| -rw-r--r-- | src/context-fns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/context-fns.cpp b/src/context-fns.cpp index c80def787..c394e38ca 100644 --- a/src/context-fns.cpp +++ b/src/context-fns.cpp @@ -140,7 +140,7 @@ Geom::Rect Inkscape::snap_rectangular_box(SPDesktop const *desktop, SPItem *item Inkscape::Snapper::ConstraintLine(p[1] - p[0])); /* Choose the best snap and update points accordingly */ - if (s[0].getDistance() < s[1].getDistance()) { + if (s[0].getSnapDistance() < s[1].getSnapDistance()) { if (s[0].getSnapped()) { p[0] = s[0].getPoint(); p[1] = 2 * center - s[0].getPoint(); @@ -178,7 +178,7 @@ Geom::Rect Inkscape::snap_rectangular_box(SPDesktop const *desktop, SPItem *item s[0] = m.freeSnap(Inkscape::SnapPreferences::SNAPPOINT_NODE, to_2geom(p[0])); s[1] = m.freeSnap(Inkscape::SnapPreferences::SNAPPOINT_NODE, to_2geom(p[1])); - if (s[0].getDistance() < s[1].getDistance()) { + if (s[0].getSnapDistance() < s[1].getSnapDistance()) { if (s[0].getSnapped()) { p[0] = s[0].getPoint(); p[1] = 2 * center - s[0].getPoint(); |
