diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2015-07-08 21:08:19 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2015-07-08 21:08:19 +0000 |
| commit | 96085240c58b87b7df948b7fa1e928a4432a7cf1 (patch) | |
| tree | 56a926ec5bfc7556c2b9adc025b9fe635575f73c /src/2geom/point.h | |
| parent | Patch from Simon Keller to correct alignment of rotated text in PDF+TEX output. (diff) | |
| download | inkscape-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.h | 4 |
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. |
