Skip to content

Commit 81bdbbc

Browse files
committedJul 23, 2015
Use constGeometry() instead geometry()
1 parent a972a30 commit 81bdbbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/core/qgsvectorlayereditutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ bool QgsVectorLayerEditUtils::moveVertex( const QgsPointV2& p, QgsFeatureId atFe
6969
if ( !L->getFeatures( QgsFeatureRequest().setFilterFid( atFeatureId ).setSubsetOfAttributes( QgsAttributeList() ) ).nextFeature( f ) || !f.constGeometry() )
7070
return false; // geometry not found
7171

72-
geometry = *f.geometry();
72+
geometry = *f.constGeometry();
7373
}
7474

7575
geometry.moveVertex( p, atVertex );

0 commit comments

Comments
 (0)
Please sign in to comment.