summaryrefslogtreecommitdiffstats
path: root/src/snap.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mailat-signdiedenrezidotnl>2010-07-20 19:18:58 +0000
committerDiederik van Lierop <mailat-signdiedenrezidotnl>2010-07-20 19:18:58 +0000
commit1bdbb699669ead878488dbda5452305ecfe19a5d (patch)
treefbf5f1c90af0d25ff7e813b724337a525d13c87a /src/snap.cpp
parentfix windows build, removing dbus from build (diff)
downloadinkscape-1bdbb699669ead878488dbda5452305ecfe19a5d.tar.gz
inkscape-1bdbb699669ead878488dbda5452305ecfe19a5d.zip
- Remove some old code which snapped the rotation center to the bbox, and which discarded all of the snapping settings
- Improve the logic behind the snapping buttons, i.e. what snaps to what for each of the buttons (bzr r9634)
Diffstat (limited to '')
-rw-r--r--src/snap.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/snap.cpp b/src/snap.cpp
index ccaf3dee3..ccbd449bd 100644
--- a/src/snap.cpp
+++ b/src/snap.cpp
@@ -174,7 +174,6 @@ void SnapManager::freeSnapReturnByRef(Geom::Point &p,
Inkscape::SnapSourceType const source_type,
Geom::OptRect const &bbox_to_snap) const
{
- //TODO: SnapCandidatePoint and point_type are somewhat redundant; can't we get rid of the point_type parameter?
Inkscape::SnappedPoint const s = freeSnap(Inkscape::SnapCandidatePoint(p, source_type), bbox_to_snap);
s.getPoint(p);
}
@@ -408,7 +407,7 @@ void SnapManager::guideFreeSnap(Geom::Point &p, Geom::Point const &guide_normal,
return;
}
- if (!(object.GuidesMightSnap() || snapprefs.getSnapToGuides())) {
+ if (!(object.ThisSnapperMightSnap() || snapprefs.getSnapToGuides())) {
return;
}
@@ -419,7 +418,7 @@ void SnapManager::guideFreeSnap(Geom::Point &p, Geom::Point const &guide_normal,
// Snap to nodes
SnappedConstraints sc;
- if (object.GuidesMightSnap()) {
+ if (object.ThisSnapperMightSnap()) {
object.guideFreeSnap(sc, p, guide_normal);
}