Skip to content

Commit 03bef52

Browse files
committedSep 24, 2018
Also shortcut validity checks for multipoint
Since multipoints are always valid (but not always simple, e.g. if they contain a duplicate point they are valid but non-simple)
1 parent f380577 commit 03bef52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/geometry/qgsgeometry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2366,7 +2366,7 @@ bool QgsGeometry::isGeosValid() const
23662366
}
23672367

23682368
// avoid calling geos for trivial point geometries
2369-
if ( QgsWkbTypes::flatType( d->geometry->wkbType() ) == QgsWkbTypes::Point )
2369+
if ( QgsWkbTypes::geometryType( d->geometry->wkbType() ) == QgsWkbTypes::PointGeometry )
23702370
{
23712371
return true;
23722372
}

0 commit comments

Comments
 (0)
Please sign in to comment.