Skip to content

Commit 7f4880b

Browse files
committed
Handle M/Z typed CurvePolygons in qgsgeometry_cast
1 parent b879d53 commit 7f4880b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/geometry/qgscurvepolygon.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ class CORE_EXPORT QgsCurvePolygon: public QgsSurface
154154
if ( !geom )
155155
return nullptr;
156156

157-
QgsWkbTypes::Type flatType = geom->wkbType();
157+
QgsWkbTypes::Type flatType = QgsWkbTypes::flatType( geom->wkbType() );
158158
if ( flatType == QgsWkbTypes::CurvePolygon
159159
|| flatType == QgsWkbTypes::Polygon
160160
|| flatType == QgsWkbTypes::Triangle )

0 commit comments

Comments
 (0)