diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-12-27 10:24:31 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-12-27 10:24:31 +0000 |
| commit | 1a5d905c41e448464621e57c9dd2e47afade25af (patch) | |
| tree | f39412aac0b9e8fcc3b4d6d25663c1f675a43029 /src/seltrans.cpp | |
| parent | BUG: 178803: Save As... -> filetype PDF via Cairo crashes (diff) | |
| download | inkscape-1a5d905c41e448464621e57c9dd2e47afade25af.tar.gz inkscape-1a5d905c41e448464621e57c9dd2e47afade25af.zip | |
1) Fix bug #178312
2) Fix constrained snapping to objects
(bzr r4314)
Diffstat (limited to 'src/seltrans.cpp')
| -rw-r--r-- | src/seltrans.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp index 785cf7d60..a747e6b4a 100644 --- a/src/seltrans.cpp +++ b/src/seltrans.cpp @@ -907,28 +907,15 @@ gboolean Inkscape::SelTrans::scaleRequest(NR::Point &pt, guint state) } // 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); |
