Skip to content

Commit 295d64b

Browse files
committed
[GRASS] fixed 3d editing
1 parent 08527af commit 295d64b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/providers/grass/qgsgrassprovider.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ void QgsGrassProvider::setPoints( struct line_pnts *points, const QgsAbstractGeo
11341134
{
11351135
return;
11361136
}
1137-
if ( geometry->wkbType() == QgsWKBTypes::Point )
1137+
if ( geometry->wkbType() == QgsWKBTypes::Point || geometry->wkbType() == QgsWKBTypes::PointZ )
11381138
{
11391139
const QgsPointV2* point = dynamic_cast<const QgsPointV2*>( geometry );
11401140
if ( point )
@@ -1143,7 +1143,7 @@ void QgsGrassProvider::setPoints( struct line_pnts *points, const QgsAbstractGeo
11431143
QgsDebugMsg( QString( "x = %1 y = %2" ).arg( point->x() ).arg( point->y() ) );
11441144
}
11451145
}
1146-
else if ( geometry->wkbType() == QgsWKBTypes::LineString )
1146+
else if ( geometry->wkbType() == QgsWKBTypes::LineString || geometry->wkbType() == QgsWKBTypes::LineStringZ )
11471147
{
11481148
const QgsLineStringV2* lineString = dynamic_cast<const QgsLineStringV2*>( geometry );
11491149
if ( lineString )
@@ -1155,7 +1155,7 @@ void QgsGrassProvider::setPoints( struct line_pnts *points, const QgsAbstractGeo
11551155
}
11561156
}
11571157
}
1158-
else if ( geometry->wkbType() == QgsWKBTypes::Polygon )
1158+
else if ( geometry->wkbType() == QgsWKBTypes::Polygon || geometry->wkbType() == QgsWKBTypes::PolygonZ )
11591159
{
11601160
const QgsPolygonV2* polygon = dynamic_cast<const QgsPolygonV2*>( geometry );
11611161
if ( polygon && polygon->exteriorRing() )

0 commit comments

Comments
 (0)