summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 904a8e1)
raw | patch | inline | side by side (parent: 904a8e1)
author | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Wed, 17 Mar 2010 23:55:48 +0000 (00:55 +0100) | ||
committer | Krzysztof Kosiński <tweenk.pl@gmail.com> | |
Wed, 17 Mar 2010 23:55:48 +0000 (00:55 +0100) |
src/ui/tool/node.cpp | patch | blob | history |
diff --git a/src/ui/tool/node.cpp b/src/ui/tool/node.cpp
index ebf30cc7771404da8f2a0937671f6c31763ce274..c82b0c7d6a7466d6ca390a50ac433c5d6c645f2d 100644 (file)
--- a/src/ui/tool/node.cpp
+++ b/src/ui/tool/node.cpp
// TODO: combine the snap and non-snap branches by modifying snap.h / snap.cpp
if (snap) {
if (line_front) {
- fp = sm.constrainedSnap(Inkscape::SnapCandidatePoint(position(),
+ fp = sm.constrainedSnap(Inkscape::SnapCandidatePoint(new_pos,
_snapSourceType()), *line_front);
}
if (line_back) {
- bp = sm.constrainedSnap(Inkscape::SnapCandidatePoint(position(),
+ bp = sm.constrainedSnap(Inkscape::SnapCandidatePoint(new_pos,
_snapSourceType()), *line_back);
}
}
if (snap) {
Inkscape::Snapper::ConstraintLine line_x(origin, Geom::Point(1, 0));
Inkscape::Snapper::ConstraintLine line_y(origin, Geom::Point(0, 1));
- fp = sm.constrainedSnap(Inkscape::SnapCandidatePoint(position(), _snapSourceType()), line_x);
- bp = sm.constrainedSnap(Inkscape::SnapCandidatePoint(position(), _snapSourceType()), line_y);
+ fp = sm.constrainedSnap(Inkscape::SnapCandidatePoint(new_pos, _snapSourceType()), line_x);
+ bp = sm.constrainedSnap(Inkscape::SnapCandidatePoint(new_pos, _snapSourceType()), line_y);
}
if (fp.getSnapped() || bp.getSnapped()) {
if (fp.isOtherSnapBetter(bp, false)) {