diff options
author | vng <viktor.govako@gmail.com> | 2012-10-17 04:14:33 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:45:40 +0300 |
commit | c0b3220afbd3dfcfa1ee3efe8b7ad92c558a2f91 (patch) | |
tree | 6428d6427d14ce4880ca010c73dbf7e504c06559 /search | |
parent | 68e41fba0d99b71543316d909d5f078f80712e41 (diff) |
Return better feature type than "building" if feature has many choices.
Diffstat (limited to 'search')
-rw-r--r-- | search/intermediate_result.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/search/intermediate_result.cpp b/search/intermediate_result.cpp index 256182d22b..0b067a8348 100644 --- a/search/intermediate_result.cpp +++ b/search/intermediate_result.cpp @@ -146,7 +146,8 @@ PreResult2::PreResult2(FeatureType const & f, PreResult1 const & res, m_rank(res.m_rank), m_viewportDistance(res.m_viewportDistance) { - ASSERT_GREATER(m_types.Size(), 0, ()); + ASSERT ( !m_types.Empty(), () ); + m_types.SortBySpec(); // It's better to get exact center for point feature. if (f.GetFeatureType() == feature::GEOM_POINT) |