Skip to content
Permalink
Browse files

Handle M/Z typed CurvePolygons in qgsgeometry_cast

  • Loading branch information
m-kuhn committed Aug 13, 2017
1 parent b879d53 commit 7f4880be2e49d9294718e2ef494120697ea5c08b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgscurvepolygon.h
@@ -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 )

0 comments on commit 7f4880b

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