Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2011-10-12 16:56:06 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:25:53 +0300
commit66ac8c9240f3ba23ad9b058b2971d9b2f2f37bc9 (patch)
tree1a8f2697875fd0b11652febf23dc8d6c5b19f10b /indexer/feature_loader_base.hpp
parenteddeb5176f2ff707ced4cea336b29a49bc319be5 (diff)
Use best geometry when deserialize scale is greater than DataHeader::GetLastScale.
Diffstat (limited to 'indexer/feature_loader_base.hpp')
-rw-r--r--indexer/feature_loader_base.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indexer/feature_loader_base.hpp b/indexer/feature_loader_base.hpp
index a2bce1c539..93d5849bc4 100644
--- a/indexer/feature_loader_base.hpp
+++ b/indexer/feature_loader_base.hpp
@@ -37,8 +37,10 @@ namespace feature
{
return m_header.GetCodingParams(scaleIndex);
}
+
inline int GetScalesCount() const { return static_cast<int>(m_header.GetScalesCount()); }
inline int GetScale(int i) const { return m_header.GetScale(i); }
+ inline int GetLastScale() const { return m_header.GetLastScale(); }
};
class LoaderBase