1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-06 14:53:21 +02:00

Added missing reference

This commit is contained in:
Martin Tůma 2020-02-04 23:03:50 +01:00
parent fa0c09b30c
commit df1be4aeb9

View File

@ -201,7 +201,7 @@ static qreal area(const QVector<QPointF> &polygon)
return area; return area;
} }
static QPointF centroid(const QVector<QPointF> polygon) static QPointF centroid(const QVector<QPointF> &polygon)
{ {
qreal cx = 0, cy = 0; qreal cx = 0, cy = 0;
qreal factor = 1.0 / (6.0 * area(polygon)); qreal factor = 1.0 / (6.0 * area(polygon));