Skip to content

Commit

Permalink
Fix multiple feature adding in case of composite keys
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Jan 20, 2021
1 parent 21e3afe commit aafab69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsabstractrelationeditorwidget.cpp
Expand Up @@ -258,8 +258,9 @@ void QgsAbstractRelationEditorWidget::addFeature( const QgsGeometry &geometry )
for ( const QgsRelation::FieldPair &fieldPair : constFieldPairs )
{
keyAttrs.insert( fields.indexFromName( fieldPair.referencingField() ), mFeature.attribute( fieldPair.referencedField() ) );
Q_ASSERT( vlTools->addFeature( mRelation.referencingLayer(), keyAttrs, geometry ) );
}

Q_ASSERT( vlTools->addFeature( mRelation.referencingLayer(), keyAttrs, geometry ) );
}
}

Expand Down

0 comments on commit aafab69

Please sign in to comment.