diff --git a/src/app/vertextool/qgsvertextool.cpp b/src/app/vertextool/qgsvertextool.cpp index ca46e725230b..ba7f26954425 100644 --- a/src/app/vertextool/qgsvertextool.cpp +++ b/src/app/vertextool/qgsvertextool.cpp @@ -2221,13 +2221,13 @@ void QgsVertexTool::moveVertex( const QgsPointXY &mapPoint, const QgsPointLocato if ( !( vectorLayer->geometryType() == Qgis::GeometryType::Polygon || vectorLayer->geometryType() == Qgis::GeometryType::Line ) ) continue; - if ( !vectorLayer->getFeatures( request ).nextFeature( f ) ) - continue; - // layer's CRS need to be the the same (otherwise we would need to reproject the point and it will not be coincident) if ( vectorLayer->crs() != itLayerEdits.key()->crs() ) continue; + if ( !vectorLayer->getFeatures( request ).nextFeature( f ) ) + continue; + vectorLayer->beginEditCommand( tr( "Topological points added by 'Vertex Tool'" ) ); bool topoPointsAdded = false;