diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-11-05 21:15:27 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-11-05 21:15:27 +0000 |
| commit | 7f8e2a6bf0391a4922e8ba306b44ce7ae9d8c505 (patch) | |
| tree | e43c8810d733b3c6e88b9419d0ef38eed5a9542c /src/seltrans.cpp | |
| parent | pattern along path is not obsolete :) (diff) | |
| download | inkscape-7f8e2a6bf0391a4922e8ba306b44ce7ae9d8c505.tar.gz inkscape-7f8e2a6bf0391a4922e8ba306b44ce7ae9d8c505.zip | |
Improve the user interaction for snapping of bounding boxes, and add an new tab in document properties for detailed snapping options
(bzr r4033)
Diffstat (limited to 'src/seltrans.cpp')
| -rw-r--r-- | src/seltrans.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |
