diff options
author | vng <viktor.govako@gmail.com> | 2014-10-29 17:53:30 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:31:55 +0300 |
commit | 07d95abd471a2f4423b2b473d138d59a1a1085dd (patch) | |
tree | e3ba6b9a1a91436ddf91f1e2c7ec6a1cec6d6d0d /map/feature_vec_model.cpp | |
parent | d0db092dd4db768e9419c4a5e6a803f778cc60eb (diff) |
[index] Check for “pending ready” files every time the app starts.
Diffstat (limited to 'map/feature_vec_model.cpp')
-rw-r--r-- | map/feature_vec_model.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/map/feature_vec_model.cpp b/map/feature_vec_model.cpp index bc5287c9a1..c4397282bd 100644 --- a/map/feature_vec_model.cpp +++ b/map/feature_vec_model.cpp @@ -39,7 +39,7 @@ int FeaturesFetcher::AddMap(string const & file) try { m2::RectD r; - version = m_multiIndex.Add(file, r); + version = m_multiIndex.AddMap(file, r); if (version != -1) m_rect.Add(r); @@ -66,7 +66,7 @@ bool FeaturesFetcher::DeleteMap(string const & file) bool FeaturesFetcher::UpdateMap(string const & file, m2::RectD & rect) { - return m_multiIndex.UpdateMap(file, rect); + return (m_multiIndex.UpdateMap(file, rect) >= 0); } void FeaturesFetcher::RemoveAll() |