summaryrefslogtreecommitdiffstats
path: root/src/snapped-point.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2007-11-03 18:11:46 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2007-11-03 18:11:46 +0000
commit8ed66ab7cb377ed90e3213fc3bba8e5bb0c63a11 (patch)
tree4d0150783a2f04376bb1b616a249a618581717c4 /src/snapped-point.cpp
parentadd destructor to LayerManager that disconnects it signals. see bug: [ 172087... (diff)
downloadinkscape-8ed66ab7cb377ed90e3213fc3bba8e5bb0c63a11.tar.gz
inkscape-8ed66ab7cb377ed90e3213fc3bba8e5bb0c63a11.zip
Oops, don't use tabs! (replace tabs by 4 spaces)
(bzr r4020)
Diffstat (limited to 'src/snapped-point.cpp')
-rw-r--r--src/snapped-point.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/snapped-point.cpp b/src/snapped-point.cpp
index 9df76b704..ed82c47c0 100644
--- a/src/snapped-point.cpp
+++ b/src/snapped-point.cpp
@@ -18,9 +18,9 @@ Inkscape::SnappedPoint::SnappedPoint(NR::Point p, NR::Coord d, bool at_intersect
Inkscape::SnappedPoint::SnappedPoint()
{
- _distance = NR_HUGE;
- _point = NR::Point(0,0);
- _at_intersection = false;
+ _distance = NR_HUGE;
+ _point = NR::Point(0,0);
+ _at_intersection = false;
}
@@ -42,16 +42,16 @@ NR::Point Inkscape::SnappedPoint::getPoint() const
// search for the closest snapped point
bool getClosestSP(std::list<Inkscape::SnappedPoint> &list, Inkscape::SnappedPoint &result)
{
- bool success = false;
-
- for (std::list<Inkscape::SnappedPoint>::const_iterator i = list.begin(); i != list.end(); i++) {
- if ((i == list.begin()) || (*i).getDistance() < result.getDistance()) {
- result = *i;
- success = true;
- }
- }
-
- return success;
+ bool success = false;
+
+ for (std::list<Inkscape::SnappedPoint>::const_iterator i = list.begin(); i != list.end(); i++) {
+ if ((i == list.begin()) || (*i).getDistance() < result.getDistance()) {
+ result = *i;
+ success = true;
+ }
+ }
+
+ return success;
}
/*