summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b825c4b)
raw | patch | inline | side by side (parent: b825c4b)
author | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Tue, 30 Dec 2008 18:19:04 +0000 (18:19 +0000) | ||
committer | dvlierop2 <dvlierop2@users.sourceforge.net> | |
Tue, 30 Dec 2008 18:19:04 +0000 (18:19 +0000) |
src/object-snapper.cpp | patch | blob | history | |
src/snap.cpp | patch | blob | history | |
src/snapped-curve.cpp | patch | blob | history |
diff --git a/src/object-snapper.cpp b/src/object-snapper.cpp
index b43d13e206396026e90ac7c920b8394945a8253a..c03a7c288414508928e3e810d37ea004629a14a4 100644 (file)
--- a/src/object-snapper.cpp
+++ b/src/object-snapper.cpp
if (!being_edited || (c1 && c2)) {
Geom::Coord const dist = Geom::distance(sp_doc, p_doc);
if (dist < getSnapperTolerance()) {
- sc.curves.push_back(Inkscape::SnappedCurve(from_2geom(sp_dt), dist, getSnapperTolerance(), getSnapperAlwaysSnap(), false, curve));
+ sc.curves.push_back(Inkscape::SnappedCurve(sp_dt, dist, getSnapperTolerance(), getSnapperAlwaysSnap(), false, curve));
}
}
}
diff --git a/src/snap.cpp b/src/snap.cpp
index ac2f1321cdc3293ef14a3450a7e436e535ece7a8..a6c4b87296fb07fd13045abe00edc8ac8dcabf9b 100644 (file)
--- a/src/snap.cpp
+++ b/src/snap.cpp
// will use the grid snapper. Simply snapping the value t to the grid will do, but
// only if the origin of the grid is at (0,0). If it's not then compensate for this
// in the translation t
- Geom::Point const t_offset = from_2geom(t) + grid->origin;
+ Geom::Point const t_offset = t + grid->origin;
SnappedConstraints sc;
// Only the first three parameters are being used for grid snappers
snapper->freeSnap(sc, Inkscape::SnapPreferences::SNAPPOINT_NODE, t_offset, TRUE, Geom::OptRect(), NULL, NULL);
diff --git a/src/snapped-curve.cpp b/src/snapped-curve.cpp
index fa2d561cd2e161c299e8f5e9935a6af39d275124..50bc8364879d23c358f64ec61ec66b87f960542b 100644 (file)
--- a/src/snapped-curve.cpp
+++ b/src/snapped-curve.cpp
// TODO: Investigate whether it is possible to use document coordinates everywhere
// in the snapper code. Only the mouse position should be in desktop coordinates, I guess.
// All paths are already in document coords and we are certainly not going to change THAT.
- return SnappedPoint(from_2geom(best_p), Inkscape::SNAPTARGET_PATH_INTERSECTION, primaryDist, primaryC->getTolerance(), primaryC->getAlwaysSnap(), true, true,
+ return SnappedPoint(best_p, Inkscape::SNAPTARGET_PATH_INTERSECTION, primaryDist, primaryC->getTolerance(), primaryC->getAlwaysSnap(), true, true,
secondaryDist, secondaryC->getTolerance(), secondaryC->getAlwaysSnap());
}