diff options
| author | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-05-09 19:02:14 +0000 |
|---|---|---|
| committer | Diederik van Lierop <mailat-signdiedenrezidotnl> | 2010-05-09 19:02:14 +0000 |
| commit | 1512a076f4d28bd3f9b5eec084707b386ff964e6 (patch) | |
| tree | a74a202b380b43aaeba1611cc2229a1876682731 /src | |
| parent | Small improvement of my previous fix in rev. #9402 (bounding box snapping) (diff) | |
| download | inkscape-1512a076f4d28bd3f9b5eec084707b386ff964e6.tar.gz inkscape-1512a076f4d28bd3f9b5eec084707b386ff964e6.zip | |
Fix small snapping regression (reported in LP #562205, comment #11)
(bzr r9405)
Diffstat (limited to 'src')
| -rw-r--r-- | src/snapped-point.cpp | 4 | ||||
| -rw-r--r-- | src/ui/tool/node.cpp | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/snapped-point.cpp b/src/snapped-point.cpp index f598cc624..48efa10e6 100644 --- a/src/snapped-point.cpp +++ b/src/snapped-point.cpp @@ -170,10 +170,10 @@ bool Inkscape::SnappedPoint::isOtherSnapBetter(Inkscape::SnappedPoint const &oth // When snapping to a constraint line only, which is not really a snap but merely a projection // to the constraint line, then give this snap a very low priority. Basically, any other snap will do if (other_one.getTarget() == SNAPTARGET_CONSTRAINT) { - dist_other += NR_HUGE/2; + dist_other += 1e6; } if (getTarget() == SNAPTARGET_CONSTRAINT) { - dist_this += NR_HUGE/2; + dist_this += 1e6; } // If it's closer diff --git a/src/ui/tool/node.cpp b/src/ui/tool/node.cpp index e9fa79fb3..56e0ecff8 100644 --- a/src/ui/tool/node.cpp +++ b/src/ui/tool/node.cpp @@ -1039,9 +1039,7 @@ void Node::dragged(Geom::Point &new_pos, GdkEventMotion *event) fp = bp; } fp.getPoint(new_pos); - if (fp.getTarget() != SNAPTARGET_CONSTRAINT) { - _desktop->snapindicator->set_new_snaptarget(fp); - } + _desktop->snapindicator->set_new_snaptarget(fp); } else { Geom::Point origin = _last_drag_origin(); Geom::Point delta = new_pos - origin; |
