Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix Z interpolation for Middle of Segment
  • Loading branch information
lbartoletti committed Oct 21, 2020
1 parent 3eec50e commit 430031f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/vertextool/qgsvertextool.cpp
Expand Up @@ -2081,7 +2081,7 @@ void QgsVertexTool::moveVertex( const QgsPointXY &mapPoint, const QgsPointLocato
QgsPoint layerPoint = matchToLayerPoint( dragLayer, mapPoint, mapPointMatch );

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

QgsVertexId vid;
Expand Down

0 comments on commit 430031f

Please sign in to comment.