Skip to content

Commit

Permalink
Fix equality comparison when saving vertex tool edits
Browse files Browse the repository at this point in the history
(cherry picked from commit 137cbd7)
  • Loading branch information
nyalldawson committed Nov 6, 2018
1 parent 1db7a29 commit 5431d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/vertextool/qgsvertextool.cpp
Expand Up @@ -1639,7 +1639,7 @@ void QgsVertexTool::applyEditsToLayers( QgsVertexTool::VertexEdits &edits )
layer->changeGeometry( it2.key(), it2.value() );
for ( int i = 0; i < mSelectedVertices.length(); ++i )
{
if ( mSelectedVertices.at( i ).layer == layer && mSelectedVertices.at( i ).fid == it2.value() )
if ( mSelectedVertices.at( i ).layer == layer && mSelectedVertices.at( i ).fid == it2.key() )
{
mSelectedFeature->selectVertex( mSelectedVertices.at( i ).vertexId );
}
Expand Down

0 comments on commit 5431d5a

Please sign in to comment.