diff options
author | vng <viktor.govako@gmail.com> | 2012-07-13 00:28:42 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:40:57 +0300 |
commit | 01857d535e997b23c901abfc1dbbf87e811b1e4f (patch) | |
tree | 75bc8d98205cf696112e49d23c8c3f903d4996be /map/feature_vec_model.cpp | |
parent | c360cb50628b4d031ff8b0637b22ec3e23bb96d5 (diff) |
Minor changes.
Diffstat (limited to 'map/feature_vec_model.cpp')
-rw-r--r-- | map/feature_vec_model.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/map/feature_vec_model.cpp b/map/feature_vec_model.cpp index 9dd8e52455..4c6c97bc13 100644 --- a/map/feature_vec_model.cpp +++ b/map/feature_vec_model.cpp @@ -68,9 +68,9 @@ bool FeaturesFetcher::UpdateMap(string const & file, m2::RectD & rect) return m_multiIndex.UpdateMap(file, rect); } -void FeaturesFetcher::RemoveAllCountries() +void FeaturesFetcher::RemoveAll() { - m_multiIndex.RemoveAllCountries(); + m_multiIndex.RemoveAll(); } //void FeaturesFetcher::Clean() @@ -91,7 +91,8 @@ bool FeaturesFetcher::IsLoaded(m2::PointD const & pt) const m_multiIndex.GetMwmInfo(info); for (size_t i = 0; i < info.size(); ++i) - if (info[i].IsExist() && info[i].IsCountry() && + if (info[i].IsExist() && + info[i].GetType() == MwmInfo::COUNTRY && info[i].m_limitRect.IsPointInside(pt)) { return true; |