Skip to content

Commit

Permalink
[Bugfix] VertexTool fixes moveVertex on Z layer, when drag and match …
Browse files Browse the repository at this point in the history
…layer have not the same crs.
  • Loading branch information
lbartoletti committed Oct 1, 2021
1 parent bf745b7 commit 1273e7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/vertextool/qgsvertextool.cpp
Expand Up @@ -2135,7 +2135,7 @@ void QgsVertexTool::moveVertex( const QgsPointXY &mapPoint, const QgsPointLocato

// needed to get Z value
if ( mapPointMatch && mapPointMatch->layer() && QgsWkbTypes::hasZ( mapPointMatch->layer()->wkbType() ) && ( mapPointMatch->hasEdge() || mapPointMatch->hasMiddleSegment() ) )
layerPoint = mapPointMatch->interpolatedPoint();
layerPoint = toLayerCoordinates( dragLayer, mapPointMatch->interpolatedPoint() );

QgsVertexId vid;
if ( !geom.vertexIdFromVertexNr( dragVertexId, vid ) )
Expand Down

0 comments on commit 1273e7a

Please sign in to comment.