[search] Fix epsilon rect calculating.

This commit is contained in:
vng 2012-02-13 23:16:27 +03:00 committed by Alex Zolotarev
parent ec3743fe36
commit 3214717687

View file

@ -49,6 +49,8 @@ namespace
{
inline bool IsEqual(m2::RectD const & r1, m2::RectD const & r2, double eps)
{
eps = eps * MercatorBounds::degreeInMetres;
m2::RectD r = r1;
r.Inflate(eps, eps);
if (!r.IsRectInside(r2)) return false;