Skip to content
Permalink
Browse files

Merge pull request #41375 from elpaso/bugfix-gh41295-relation-crash

Remove assert: return is false if editing is aborted
  • Loading branch information
elpaso committed Feb 6, 2021
2 parents 15267f9 + 9cb3719 commit 20a066d577c1d01a2c42c90fa8cd8cadeba2540b
Showing with 1 addition and 2 deletions.
  1. +1 −2 src/gui/qgsabstractrelationeditorwidget.cpp
@@ -260,8 +260,7 @@ void QgsAbstractRelationEditorWidget::addFeature( const QgsGeometry &geometry )
keyAttrs.insert( fields.indexFromName( fieldPair.referencingField() ), mFeature.attribute( fieldPair.referencedField() ) );
}

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

0 comments on commit 20a066d

Please sign in to comment.