diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2019-04-15 18:28:54 +0300 |
---|---|---|
committer | Tatiana Yan <tatiana.kondakova@gmail.com> | 2019-04-22 18:47:33 +0300 |
commit | 01c771fe7f945a53581a7badb0a6b840e98f572a (patch) | |
tree | a747713bde42905d1d99698a9fb59b2e7ccb2c21 /indexer | |
parent | 2397d5d659b53cd7d7f4787ba6ae5e24189302f2 (diff) |
[booking][search] booking filter improvement. review fixes
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/drules_selector.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/indexer/drules_selector.cpp b/indexer/drules_selector.cpp index 79f3de077a..6ba8c5f6d6 100644 --- a/indexer/drules_selector.cpp +++ b/indexer/drules_selector.cpp @@ -151,10 +151,7 @@ bool GetBoundingBoxArea(FeatureType & ft, double & sqM) if (feature::GeomType::Area != ft.GetGeomType()) return false; - m2::RectD const rect = ft.GetLimitRect(scales::GetUpperScale()); - - sqM = MercatorBounds::AreaOnEarth(rect.LeftTop(), rect.LeftBottom(), rect.RightBottom()) + - MercatorBounds::AreaOnEarth(rect.LeftTop(), rect.RightTop(), rect.RightBottom()); + sqM = MercatorBounds::AreaOnEarth(ft.GetLimitRect(scales::GetUpperScale())); return true; } |