diff options
| author | Diederik van Lierop <mail@diedenrezi.nl> | 2007-04-19 20:06:28 +0000 |
|---|---|---|
| committer | dvlierop2 <dvlierop2@users.sourceforge.net> | 2007-04-19 20:06:28 +0000 |
| commit | fa3101dc4297b19b5514a14d21fe29c14d2a62a2 (patch) | |
| tree | 08db0edcc36b918008fa82598a03fb12d4ef0376 /src/seltrans.cpp | |
| parent | Completes crash fix for 1638735 (diff) | |
| download | inkscape-fa3101dc4297b19b5514a14d21fe29c14d2a62a2.tar.gz inkscape-fa3101dc4297b19b5514a14d21fe29c14d2a62a2.zip | |
Improve readability and remove some unused code
(bzr r2930)
Diffstat (limited to 'src/seltrans.cpp')
| -rw-r--r-- | src/seltrans.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/seltrans.cpp b/src/seltrans.cpp index 82632d456..cfc784dac 100644 --- a/src/seltrans.cpp +++ b/src/seltrans.cpp @@ -1342,7 +1342,7 @@ void Inkscape::SelTrans::stretch(SPSelTransHandle const &handle, NR::Point &pt, NR::Point p1 = _approximate_bbox->min() * (NR::translate(-scale_origin) * NR::Matrix(s) * NR::translate(scale_origin)); NR::Point p2 = _approximate_bbox->max() * (NR::translate(-scale_origin) * NR::Matrix(s) * NR::translate(scale_origin)); - //Find the ones at the lower-left and upper-right, as required by get_scale_transform_with_stroke + //Find the corners at the lower-left and upper-right, as required by get_scale_transform_with_stroke NR::Point new_bbox_min = NR::Point(std::min(p1[NR::X], p2[NR::X]), std::min(p1[NR::Y], p2[NR::Y])); NR::Point new_bbox_max = NR::Point(std::max(p1[NR::X], p2[NR::X]), std::max(p1[NR::Y], p2[NR::Y])); @@ -1380,7 +1380,7 @@ void Inkscape::SelTrans::scale(NR::Point &pt, guint state) NR::Point p1 = _approximate_bbox->min() * (NR::translate(-_origin) * NR::Matrix(s) * NR::translate(_origin)); NR::Point p2 = _approximate_bbox->max() * (NR::translate(-_origin) * NR::Matrix(s) * NR::translate(_origin)); - //Find the ones at the lower-left and upper-right, as required by get_scale_transform_with_stroke + //Find the corners at the lower-left and upper-right, as required by get_scale_transform_with_stroke NR::Point new_bbox_min = NR::Point(std::min(p1[NR::X], p2[NR::X]), std::min(p1[NR::Y], p2[NR::Y])); NR::Point new_bbox_max = NR::Point(std::max(p1[NR::X], p2[NR::X]), std::max(p1[NR::Y], p2[NR::Y])); |
