diff --git a/src/seltrans.cpp b/src/seltrans.cpp
index 785cf7d60f3f8dc0fc233aa13ffcece98f7ee25c..a747e6b4a9a44c7e8a13c107c34de4628b2475e2 100644 (file)
--- a/src/seltrans.cpp
+++ b/src/seltrans.cpp
}
// Snap along a suitable constraint vector from the origin.
-
- // The inclination of the constraint vector is calculated from the aspect ratio
- NR::Point bbox_dim = _bbox->dimensions();
- double const aspect_ratio = bbox_dim[1] / bbox_dim[0]; // = height / width
-
- // Determine direction of the constraint vector
- NR::Point const cv = NR::Point(
- pt[NR::X] > _origin[NR::X] ? 1 : -1,
- pt[NR::Y] > _origin[NR::Y] ? aspect_ratio : -aspect_ratio
- );
-
std::pair<NR::scale, bool> bb = m.constrainedSnapScale(Snapper::SNAPPOINT_BBOX,
_bbox_points,
it,
- Snapper::ConstraintLine(_origin_for_bboxpoints, cv),
s,
_origin_for_bboxpoints);
std::pair<NR::scale, bool> sn = m.constrainedSnapScale(Snapper::SNAPPOINT_NODE,
_snap_points,
it,
- Snapper::ConstraintLine(_origin_for_specpoints, cv),
s,
_origin_for_specpoints);