diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2008-04-07 19:28:34 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2008-04-07 19:28:34 +0000 |
| commit | 34568b6a1d6b5151f6e962b03c3478db0d729676 (patch) | |
| tree | 619b53ec1b6fe3f4840105ad02b1897ee5595da4 /src/pencil-context.cpp | |
| parent | cmake: add comment of why to add base binary dir to include path (diff) | |
| download | inkscape-34568b6a1d6b5151f6e962b03c3478db0d729676.tar.gz inkscape-34568b6a1d6b5151f6e962b03c3478db0d729676.zip | |
Refactor snapper and snapindicator (in order to enable the snapindicator in the selector tool)
(bzr r5374)
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 d27d363f9..878651ade 100644 --- a/src/pencil-context.cpp +++ b/src/pencil-context.cpp @@ -327,8 +327,8 @@ pencil_handle_motion_notify(SPPencilContext *const pc, GdkEventMotion const &mev SnapManager const &m = dt->namedview->snap_manager; Inkscape::SnappedPoint const s = m.freeSnap(Inkscape::Snapper::SNAPPOINT_NODE, p, NULL); p = s.getPoint(); - if (s.getDistance() < NR_HUGE) { - dt->snapindicator->set_new_snappoint(p.to_2geom()); + if (s.getSnapped()) { + dt->snapindicator->set_new_snappoint(s); } } if ( pc->npoints != 0 ) { // buttonpress may have happened before we entered draw context! |
