diff options
Diffstat (limited to 'src/selection.cpp')
| -rw-r--r-- | src/selection.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/selection.cpp b/src/selection.cpp index aa77ef894..c40b7b546 100644 --- a/src/selection.cpp +++ b/src/selection.cpp @@ -357,20 +357,20 @@ std::vector<NR::Point> Selection::getSnapPointsConvexHull() const { for (GSList const *iter = items; iter != NULL; iter = iter->next) { sp_item_snappoints(SP_ITEM(iter->data), SnapPointsIter(p)); } - - std::vector<NR::Point>::iterator i; + + std::vector<NR::Point>::iterator i; NR::ConvexHull cvh(*(p.begin())); for (i = p.begin(); i != p.end(); i++) { // these are the points we get back - cvh.add(*i); + cvh.add(*i); } - - NR::Rect rHull = cvh.bounds(); - std::vector<NR::Point> pHull(4); - pHull[0] = rHull.corner(0); - pHull[1] = rHull.corner(1); - pHull[2] = rHull.corner(2); - pHull[3] = rHull.corner(3); + + NR::Rect rHull = cvh.bounds(); + std::vector<NR::Point> pHull(4); + pHull[0] = rHull.corner(0); + pHull[1] = rHull.corner(1); + pHull[2] = rHull.corner(2); + pHull[3] = rHull.corner(3); return pHull; } |
