diff --git a/generator/feature_builder.cpp b/generator/feature_builder.cpp index d49e09e70e..60864033d5 100644 --- a/generator/feature_builder.cpp +++ b/generator/feature_builder.cpp @@ -114,6 +114,7 @@ m2::PointD FeatureBuilder::GetKeyPoint() const void FeatureBuilder::SetCenter(m2::PointD const & p) { + ResetGeometry(); m_center = p; m_params.SetGeomType(GeomType::Point); m_limitRect.Add(p); diff --git a/generator/feature_maker_base.cpp b/generator/feature_maker_base.cpp index 193bcc45b1..fc861a1b5d 100644 --- a/generator/feature_maker_base.cpp +++ b/generator/feature_maker_base.cpp @@ -68,7 +68,6 @@ void TransformToPoint(FeatureBuilder & feature) return; auto const center = feature.GetGeometryCenter(); - feature.ResetGeometry(); feature.SetCenter(center); auto & params = feature.GetParams(); if (!params.house.IsEmpty()) diff --git a/generator/generator_tests_support/test_mwm_builder.cpp b/generator/generator_tests_support/test_mwm_builder.cpp index 598d4c4b73..7f00008faf 100644 --- a/generator/generator_tests_support/test_mwm_builder.cpp +++ b/generator/generator_tests_support/test_mwm_builder.cpp @@ -96,7 +96,6 @@ bool TestMwmBuilder::Add(FeatureBuilder & fb) m_boundariesTable.Append(testId, indexer::CityBoundary(fb.GetOuterGeometry())); auto const center = fb.GetGeometryCenter(); - fb.ResetGeometry(); fb.SetCenter(center); }