Skip to content
Permalink
Browse files
fix test
  • Loading branch information
lbartoletti committed May 17, 2021
1 parent 1591c07 commit 49a245726874d0bc12a2623fdd44e06b506221ec
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/app/vertextool/qgsvertextool.cpp
@@ -2187,10 +2187,11 @@ void QgsVertexTool::moveVertex( const QgsPointXY &mapPoint, const QgsPointLocato
const auto editGeom = edits[layer].values();
for ( QgsGeometry g : editGeom )
{
if ( !layerPoint.is3D() )
layerPoint.addZValue( defaultZValue() );
if ( QgsGeometry( layerPoint.clone() ).touches( g ) )
QgsGeometry p = QgsGeometry::fromPointXY( QgsPointXY( layerPoint.x(), layerPoint.y() ) );
if ( g.contains( p ) )
{
if ( !layerPoint.is3D() )
layerPoint.addZValue( defaultZValue() );
layer->addTopologicalPoints( layerPoint );
mapPointMatch->layer()->addTopologicalPoints( layerPoint );
}

0 comments on commit 49a2457

Please sign in to comment.