Skip to content
Permalink
Browse files

Remove unnecessary checks

  • Loading branch information
pblottiere committed Apr 26, 2018
1 parent f8e72ad commit 07b07ab12ad4a15c96db869ac5ec85c2f847ddc3
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsmaptoolcapture.cpp
@@ -403,12 +403,12 @@ int QgsMapToolCapture::fetchLayerPoint( const QgsPointLocator::Match &match, Qgs
layerPoint = f.geometry().constGet()->vertexAt( vId );

// ZM support depends on the target layer
if ( layerPoint.is3D() && !QgsWkbTypes::hasZ( vlayer->wkbType() ) )
if ( !QgsWkbTypes::hasZ( vlayer->wkbType() ) )
{
layerPoint.dropZValue();
}

if ( layerPoint.isMeasure() && !QgsWkbTypes::hasM( vlayer->wkbType() ) )
if ( !QgsWkbTypes::hasM( vlayer->wkbType() ) )
{
layerPoint.dropMValue();
}

0 comments on commit 07b07ab

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