Skip to content

Commit

Permalink
Use constGeometry() instead geometry()
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jul 23, 2015
1 parent a972a30 commit 81bdbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorlayereditutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 81bdbbc

Please sign in to comment.