Skip to content
Permalink
Browse files
Fix topological point
  • Loading branch information
lbartoletti committed May 17, 2021
1 parent 52e722b commit 7f27cb2a520359ce9c8e15ba20d2ad09321be46c
Showing with 1 addition and 5 deletions.
  1. +1 −5 src/app/vertextool/qgsvertextool.cpp
@@ -2188,17 +2188,13 @@ void QgsVertexTool::moveVertex( const QgsPointXY &mapPoint, const QgsPointLocato
for ( QgsGeometry g : editGeom )
{
QgsGeometry p = QgsGeometry::fromPointXY( QgsPointXY( layerPoint.x(), layerPoint.y() ) );
if ( g.contains( p ) )
if ( g.convertToType( QgsWkbTypes::PointGeometry, true ).contains( p ) )
{
if ( !layerPoint.is3D() )
layerPoint.addZValue( defaultZValue() );
layer->addTopologicalPoints( layerPoint );
mapPointMatch->layer()->addTopologicalPoints( layerPoint );
}
/*
* layer->addTopologicalPoints( g );
* mapPointMatch->layer()->addTopologicalPoints( g );
*/
}
}
}

0 comments on commit 7f27cb2

Please sign in to comment.