Skip to content
Permalink
Browse files

Use constGeometry() instead geometry()

  • Loading branch information
mhugent committed Jul 23, 2015
1 parent a972a30 commit 81bdbbc4eb725d090b0927ff56aee2ab5686e88d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsvectorlayereditutils.cpp
@@ -69,7 +69,7 @@ bool QgsVectorLayerEditUtils::moveVertex( const QgsPointV2& p, QgsFeatureId atFe
if ( !L->getFeatures( QgsFeatureRequest().setFilterFid( atFeatureId ).setSubsetOfAttributes( QgsAttributeList() ) ).nextFeature( f ) || !f.constGeometry() )
return false; // geometry not found

geometry = *f.geometry();
geometry = *f.constGeometry();
}

geometry.moveVertex( p, atVertex );

0 comments on commit 81bdbbc

Please sign in to comment.
You can’t perform that action at this time.