Skip to content
Permalink
Browse files

Fix dropping M/Z values from geometry collections

  • Loading branch information
nyalldawson committed Sep 25, 2017
1 parent 94b4485 commit b2bd0ac1829c501985f8138f49852f718724476c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/geometry/qgsgeometrycollection.cpp
@@ -690,7 +690,7 @@ bool QgsGeometryCollection::addMValue( double mValue )

bool QgsGeometryCollection::dropZValue()
{
if ( !is3D() )
if ( mWkbType != QgsWkbTypes::GeometryCollection && !is3D() )
return false;

mWkbType = QgsWkbTypes::dropZ( mWkbType );
@@ -704,7 +704,7 @@ bool QgsGeometryCollection::dropZValue()

bool QgsGeometryCollection::dropMValue()
{
if ( !isMeasure() )
if ( mWkbType != QgsWkbTypes::GeometryCollection && !isMeasure() )
return false;

mWkbType = QgsWkbTypes::dropM( mWkbType );

0 comments on commit b2bd0ac

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