Skip to content
Permalink
Browse files
cosmetic changes for m
  • Loading branch information
lbartoletti authored and nyalldawson committed Sep 12, 2021
1 parent 16d8630 commit c2897fabaeb1fdb1ce8f50ca62440f4a40bcbaf4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsmaptoolcapture.cpp
@@ -515,7 +515,7 @@ int QgsMapToolCapture::fetchLayerPoint( const QgsPointLocator::Match &match, Qgs
if ( QgsWkbTypes::hasZ( vlayer->wkbType() ) && !layerPoint.is3D() )
layerPoint.addZValue( mCadDockWidget && mCadDockWidget->cadEnabled() ? mCadDockWidget->currentPoint().z() : defaultZValue() );
if ( QgsWkbTypes::hasM( vlayer->wkbType() ) && !layerPoint.isMeasure() )
layerPoint.addMValue( defaultMValue() );
layerPoint.addMValue( mCadDockWidget && mCadDockWidget->cadEnabled() ? mCadDockWidget->currentPoint().m() : defaultMValue() );
}

// ZM support depends on the target layer
@@ -1023,7 +1023,7 @@ QgsPoint QgsMapToolCapture::mapPoint( const QgsPointXY &point ) const
// set m value if necessary
if ( QgsWkbTypes::hasM( newPoint.wkbType() ) )
{
newPoint.setM( defaultMValue() );
newPoint.setM( mCadDockWidget && mCadDockWidget->cadEnabled() ? mCadDockWidget->currentPoint().m() : defaultMValue() );
}

return newPoint;

0 comments on commit c2897fa

Please sign in to comment.