diff --git a/src/algorithm/construct/MaximumInscribedCircle.cpp b/src/algorithm/construct/MaximumInscribedCircle.cpp index c3a471078..3db9cd052 100644 --- a/src/algorithm/construct/MaximumInscribedCircle.cpp +++ b/src/algorithm/construct/MaximumInscribedCircle.cpp @@ -164,8 +164,8 @@ MaximumInscribedCircle::distanceToBoundary(double x, double y) MaximumInscribedCircle::Cell MaximumInscribedCircle::createInteriorPointCell(const Geometry* geom) { - Coordinate c; std::unique_ptr p = geom->getInteriorPoint(); + Coordinate c(p->getX(), p->getY());; Cell cell(p->getX(), p->getY(), 0, distanceToBoundary(c)); return cell; }