summaryrefslogtreecommitdiffstats
path: root/src/2geom/point.h
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2015-07-08 21:08:19 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2015-07-08 21:08:19 +0000
commit96085240c58b87b7df948b7fa1e928a4432a7cf1 (patch)
tree56a926ec5bfc7556c2b9adc025b9fe635575f73c /src/2geom/point.h
parentPatch from Simon Keller to correct alignment of rotated text in PDF+TEX output. (diff)
downloadinkscape-96085240c58b87b7df948b7fa1e928a4432a7cf1.tar.gz
inkscape-96085240c58b87b7df948b7fa1e928a4432a7cf1.zip
Fix build failures on some platforms.
Correct CMakeLists.txt after 2Geom sync - patch by su_v. (bzr r14237)
Diffstat (limited to 'src/2geom/point.h')
-rw-r--r--src/2geom/point.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/2geom/point.h b/src/2geom/point.h
index f2659d351..a66e64647 100644
--- a/src/2geom/point.h
+++ b/src/2geom/point.h
@@ -386,7 +386,9 @@ inline Coord distanceSq (Point const &a, Point const &b) {
/// Test whether two points are no further apart than some threshold.
/// @relates Point
inline bool are_near(Point const &a, Point const &b, double eps = EPSILON) {
- return are_near(distance(a, b), 0, eps);
+ // do not use an unqualified calls to distance before the empty
+ // specialization of iterator_traits is defined - see end of file
+ return are_near((a - b).length(), 0, eps);
}
/// Test whether three points lie approximately on the same line.