From cf85cb852fc5503e910b8f504190854003bff398 Mon Sep 17 00:00:00 2001 From: Konstantin Pastbin Date: Fri, 14 Jan 2022 10:28:32 +0300 Subject: [PATCH] [core] Prioritize line features selection over area ones Needed-for: #1847 Signed-off-by: Konstantin Pastbin --- map/framework.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/map/framework.cpp b/map/framework.cpp index c9df98311e..ee83525f2c 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1916,7 +1916,7 @@ FeatureID Framework::GetFeatureAtPoint(m2::PointD const & mercator, } }, mercator); - return fullMatch.IsValid() ? fullMatch : (poi.IsValid() ? poi : (area.IsValid() ? area : line)); + return fullMatch.IsValid() ? fullMatch : (poi.IsValid() ? poi : (line.IsValid() ? line : area)); } osm::MapObject Framework::GetMapObjectByID(FeatureID const & fid) const