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:
authorSergey Magidovich <mgsergio@mapswithme.com>2016-02-13 19:04:32 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:20:48 +0300
commitfdaa9d6cf6496e0cf6b42ee864b90e7df778ce9c (patch)
treeb1ba1e94089da588a6eaa13d6a123484ae5c430b /indexer/feature_algo.cpp
parent138798419bd017ea5236b5e24f43149b1881a35c (diff)
Code review and refactoring of geometry/algorithm.
Diffstat (limited to 'indexer/feature_algo.cpp')
-rw-r--r--indexer/feature_algo.cpp4
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();
}
}
}