Skip to content
Permalink
Browse files

Fix test failure

  • Loading branch information
nyalldawson committed Jun 28, 2018
1 parent 34b9d39 commit c360e3746033a0e3566b374a617b3df891a18e16
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/core/geometry/qgsgeometry.cpp
@@ -1873,7 +1873,10 @@ QgsGeometry QgsGeometry::centroid() const
// avoid calling geos for trivial point centroids
if ( QgsWkbTypes::flatType( d->geometry->wkbType() ) == QgsWkbTypes::Point )
{
return *this;
QgsGeometry c = *this;
c.get()->dropZValue();
c.get()->dropMValue();
return c;
}

QgsGeos geos( d->geometry.get() );

0 comments on commit c360e37

Please sign in to comment.
You can’t perform that action at this time.