From 7f8e2a6bf0391a4922e8ba306b44ce7ae9d8c505 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Mon, 5 Nov 2007 21:15:27 +0000 Subject: Improve the user interaction for snapping of bounding boxes, and add an new tab in document properties for detailed snapping options (bzr r4033) --- src/seltrans.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/seltrans.cpp') diff --git a/src/seltrans.cpp b/src/seltrans.cpp index b95e70c4a..3650b18b6 100644 --- a/src/seltrans.cpp +++ b/src/seltrans.cpp @@ -1057,7 +1057,7 @@ gboolean Inkscape::SelTrans::stretchRequest(SPSelTransHandle const &handle, NR:: NR::Coord const bd = bb.second ? fabs(bb.first - s[axis]) : NR_HUGE; NR::Coord const sd = sn.second ? fabs(sn.first - s[axis]) : NR_HUGE; NR::Coord const ratio = (bd < sd) ? bb.first : sn.first; - + s[axis] = fabs(ratio) * sign(s[axis]); s[perp] = fabs(s[axis]); } else { @@ -1084,6 +1084,7 @@ gboolean Inkscape::SelTrans::stretchRequest(SPSelTransHandle const &handle, NR:: NR::Coord const bd = bb.second ? fabs(bb.first - s[axis]) : NR_HUGE; NR::Coord const sd = sn.second ? fabs(sn.first - s[axis]) : NR_HUGE; s[axis] = (bd < sd) ? bb.first : sn.first; + s[perp] = 1; } -- cgit v1.2.3