Skip to content

Commit

Permalink
Handle M/Z typed CurvePolygons in qgsgeometry_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 13, 2017
1 parent b879d53 commit 7f4880b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgscurvepolygon.h
Expand Up @@ -154,7 +154,7 @@ class CORE_EXPORT QgsCurvePolygon: public QgsSurface
if ( !geom )
return nullptr;

QgsWkbTypes::Type flatType = geom->wkbType();
QgsWkbTypes::Type flatType = QgsWkbTypes::flatType( geom->wkbType() );
if ( flatType == QgsWkbTypes::CurvePolygon
|| flatType == QgsWkbTypes::Polygon
|| flatType == QgsWkbTypes::Triangle )
Expand Down

0 comments on commit 7f4880b

Please sign in to comment.