summaryrefslogtreecommitdiffstats
path: root/src/snap.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-11-14 21:07:46 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-11-14 21:07:46 +0000
commitcb9e6af760a61d057ee679637bb8728c5d132dc7 (patch)
tree98340affad496187bfd9f271222dff0bb9a461da /src/snap.cpp
parentSnap to intersections of line segments (diff)
downloadinkscape-cb9e6af760a61d057ee679637bb8728c5d132dc7.tar.gz
inkscape-cb9e6af760a61d057ee679637bb8728c5d132dc7.zip
A pasted selection is supposed to snap to the grid, but this cannot work the way its implemented currently. If one of the points is currently snapped, then how can we make sure that that SAME point is snapped again after pasting? If it's another point that snaps, then this is useless...
Furthermore it's also buggy currently (it messes up the grid snapping sensitivity), so I'm removing this functionality. If someone wants it back, we should rather round the paste offset to a multiple of the grid pitch. This way, something that was snapped to the grid before will stay snapped after pasting. (bzr r4083)
Diffstat (limited to 'src/snap.cpp')
-rw-r--r--src/snap.cpp54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index edc30e21a..a6b91e074 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -216,60 +216,6 @@ Inkscape::SnappedPoint SnapManager::freeSnap(Inkscape::Snapper::PointType t,
}
/**
- * Try to snap a point to any of the specified snappers. Snap always, ignoring the snap-distance
- *
- * \param t Type of point.
- * \param p Point.
- * \param it Item to ignore when snapping.
- * \param snappers List of snappers to try to snap to
- * \return Snapped point.
- */
-
-Inkscape::SnappedPoint
-SnapManager::freeSnapAlways( Inkscape::Snapper::PointType t,
- NR::Point const &p,
- SPItem const *it,
- SnapperList &snappers )
-{
- std::list<SPItem const *> lit;
- lit.push_back(it);
- return freeSnapAlways(t, p, lit, snappers);
-}
-
-/**
- * Try to snap a point to any of the specified snappers. Snap always, ignoring the snap-distance
- *
- * \param t Type of point.
- * \param p Point.
- * \param it List of items to ignore when snapping.
- * \param snappers List of snappers to try to snap to
- * \return Snapped point.
- */
-
-Inkscape::SnappedPoint
-SnapManager::freeSnapAlways( Inkscape::Snapper::PointType t,
- NR::Point const &p,
- std::list<SPItem const *> const &it,
- SnapperList &snappers )
-{
-
- SnappedConstraints sc;
-
- for (SnapperList::iterator i = snappers.begin(); i != snappers.end(); i++) {
- gdouble const curr_gridsnap = (*i)->getDistance();
- const_cast<Inkscape::Snapper*> (*i)->setDistance(NR_HUGE);
- std::vector<NR::Point> points_to_snap;
- points_to_snap.push_back(p);
- (*i)->freeSnap(sc, t, p, true, points_to_snap, it);
- const_cast<Inkscape::Snapper*> (*i)->setDistance(curr_gridsnap);
- }
-
- return findBestSnap(p, sc);
-}
-
-
-
-/**
* Try to snap a point to any interested snappers. A snap will only occur along
* a line described by a Inkscape::Snapper::ConstraintLine.
*