Skip to content
Permalink
Browse files

Fix equality comparison when saving vertex tool edits

  • Loading branch information
nyalldawson committed Nov 4, 2018
1 parent 685806b commit 137cbd76ae97bca078d92cae173fe13ee9b8ad82
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/vertextool/qgsvertextool.cpp
@@ -1731,7 +1731,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 137cbd7

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