diff options
author | vng <viktor.govako@gmail.com> | 2013-09-25 15:14:29 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:02:42 +0300 |
commit | 6766d52a7b13556b4d8af2f50ea7817b924e4f99 (patch) | |
tree | 64d78cc19dceee5fa40ad2ba38e07762895086ee /indexer/mwm_set.cpp | |
parent | 0b5feff580e34e7d1f2720114e2a16d2760463dc (diff) |
Old apps can read header and skip mwm's with new data format, since now.
Diffstat (limited to 'indexer/mwm_set.cpp')
-rw-r--r-- | indexer/mwm_set.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indexer/mwm_set.cpp b/indexer/mwm_set.cpp index 9477616b4a..eec0568253 100644 --- a/indexer/mwm_set.cpp +++ b/indexer/mwm_set.cpp @@ -130,6 +130,8 @@ int MwmSet::AddImpl(string const & fileName, m2::RectD & rect) // this function can throw an exception for bad mwm file MwmInfo info; int const version = GetInfo(fileName, info); + if (version == -1) + return -1; info.m_status = MwmInfo::STATUS_ACTIVE; |