From df1be4aeb989d53ae7e3dd875c07516e1844eb7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 4 Feb 2020 23:03:50 +0100 Subject: [PATCH] Added missing reference --- src/map/imgmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/imgmap.cpp b/src/map/imgmap.cpp index b71b2be6..c838cf4e 100644 --- a/src/map/imgmap.cpp +++ b/src/map/imgmap.cpp @@ -201,7 +201,7 @@ static qreal area(const QVector &polygon) return area; } -static QPointF centroid(const QVector polygon) +static QPointF centroid(const QVector &polygon) { qreal cx = 0, cy = 0; qreal factor = 1.0 / (6.0 * area(polygon));