diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2018-11-19 17:58:55 +0300 |
---|---|---|
committer | Tatiana Yan <tatiana.kondakova@gmail.com> | 2018-11-19 19:29:44 +0300 |
commit | d93355f64c4ba8f55dc6e8d7671984352e858339 (patch) | |
tree | 3ff1250cad0010e4d89f2b880a3a2456bdb2cb01 /ugc | |
parent | dc7216e4871fe7f998e8be4bee790658bcb0706a (diff) |
[notifications] review fixes
Diffstat (limited to 'ugc')
-rw-r--r-- | ugc/storage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ugc/storage.cpp b/ugc/storage.cpp index f59012a10a..95febbe8bf 100644 --- a/ugc/storage.cpp +++ b/ugc/storage.cpp @@ -29,6 +29,8 @@ #include <boost/optional/optional.hpp> +#include "defines.hpp" + using namespace std; namespace @@ -299,8 +301,7 @@ UpdateIndexes::const_iterator Storage::FindIndex(uint32_t bestType, m2::PointD c return find_if( m_indexes.begin(), m_indexes.end(), [typeIndex, &point](UpdateIndex const & index) -> bool { - // We are use 1e-5 eps because of points in mwm have this accuracy. - return typeIndex == index.m_type && point.EqualDxDy(index.m_mercator, 1e-5 /* eps */) && + return typeIndex == index.m_type && point.EqualDxDy(index.m_mercator, kMwmPointAccuracy) && !index.m_deleted; }); } |