Skip to content

Commit 07b07ab

Browse files
committedApr 26, 2018
Remove unnecessary checks
1 parent f8e72ad commit 07b07ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/qgsmaptoolcapture.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,12 +403,12 @@ int QgsMapToolCapture::fetchLayerPoint( const QgsPointLocator::Match &match, Qgs
403403
layerPoint = f.geometry().constGet()->vertexAt( vId );
404404

405405
// ZM support depends on the target layer
406-
if ( layerPoint.is3D() && !QgsWkbTypes::hasZ( vlayer->wkbType() ) )
406+
if ( !QgsWkbTypes::hasZ( vlayer->wkbType() ) )
407407
{
408408
layerPoint.dropZValue();
409409
}
410410

411-
if ( layerPoint.isMeasure() && !QgsWkbTypes::hasM( vlayer->wkbType() ) )
411+
if ( !QgsWkbTypes::hasM( vlayer->wkbType() ) )
412412
{
413413
layerPoint.dropMValue();
414414
}

0 commit comments

Comments
 (0)
Please sign in to comment.