diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2013-07-23 16:54:03 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2013-07-23 16:54:03 +0000 |
| commit | 379521136cda27b5e42c7afdd87a8ac691404f16 (patch) | |
| tree | f3b79a3e903a907a9187f6d61d79b0e442a742f7 /src/satisfied-guide-cns.cpp | |
| parent | Fix spelling error in filename (diff) | |
| download | inkscape-379521136cda27b5e42c7afdd87a8ac691404f16.tar.gz inkscape-379521136cda27b5e42c7afdd87a8ac691404f16.zip | |
Remove approx-equal.h and replace with Geom::are_near
(bzr r12431)
Diffstat (limited to 'src/satisfied-guide-cns.cpp')
| -rw-r--r-- | src/satisfied-guide-cns.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/satisfied-guide-cns.cpp b/src/satisfied-guide-cns.cpp index 57d4ffce3..588c78ce0 100644 --- a/src/satisfied-guide-cns.cpp +++ b/src/satisfied-guide-cns.cpp @@ -1,8 +1,8 @@ +#include <2geom/coord.h> #include "desktop-handles.h" #include "sp-guide.h" #include "sp-guide-constraint.h" #include "sp-namedview.h" -#include "approx-equal.h" #include "satisfied-guide-cns.h" void satisfied_guide_cns(SPDesktop const &desktop, @@ -13,7 +13,7 @@ void satisfied_guide_cns(SPDesktop const &desktop, for (GSList const *l = nv.guides; l != NULL; l = l->next) { SPGuide &g = *SP_GUIDE(l->data); for (unsigned int i = 0; i < snappoints.size(); ++i) { - if (approx_equal( g.getDistanceFrom(snappoints[i].getPoint()), 0) ) { + if (Geom::are_near(g.getDistanceFrom(snappoints[i].getPoint()), 0, 1e-2)) { cns.push_back(SPGuideConstraint(&g, i)); } } |
