diff options
author | Sergey Magidovich <mgsergio@mapswithme.com> | 2016-02-13 19:04:32 +0300 |
---|---|---|
committer | Sergey Yershov <yershov@corp.mail.ru> | 2016-03-23 16:20:48 +0300 |
commit | fdaa9d6cf6496e0cf6b42ee864b90e7df778ce9c (patch) | |
tree | b1ba1e94089da588a6eaa13d6a123484ae5c430b /indexer/feature_algo.cpp | |
parent | 138798419bd017ea5236b5e24f43149b1881a35c (diff) |
Code review and refactoring of geometry/algorithm.
Diffstat (limited to 'indexer/feature_algo.cpp')
-rw-r--r-- | indexer/feature_algo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/feature_algo.cpp b/indexer/feature_algo.cpp index 3112d37b0b..25d15e9e58 100644 --- a/indexer/feature_algo.cpp +++ b/indexer/feature_algo.cpp @@ -25,7 +25,7 @@ m2::PointD GetCenter(FeatureType const & f, int scale) { m2::CalculatePolyLineCenter doCalc; f.ForEachPoint(doCalc, scale); - return doCalc.GetCenter(); + return doCalc.GetResult(); } default: @@ -33,7 +33,7 @@ m2::PointD GetCenter(FeatureType const & f, int scale) ASSERT_EQUAL(type, GEOM_AREA, ()); m2::CalculatePointOnSurface doCalc(f.GetLimitRect(scale)); f.ForEachTriangle(doCalc, scale); - return doCalc.GetCenter(); + return doCalc.GetResult(); } } } |