Skip to content
Permalink
Browse files

Fix equality comparison when saving vertex tool edits

(cherry picked from commit 137cbd7)
  • Loading branch information
nyalldawson committed Nov 4, 2018
1 parent 1db7a29 commit 5431d5a3bc1de3d9550021fdc7ecfde0943d9272
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/vertextool/qgsvertextool.cpp
@@ -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 );
}

0 comments on commit 5431d5a

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