Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
follow up
  • Loading branch information
3nids committed Sep 10, 2020
1 parent e87ba45 commit 8471d5a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/core/qgsrelation.cpp
Expand Up @@ -94,14 +94,7 @@ QgsRelation QgsRelation::createFromXml( const QDomNode &node, QgsReadWriteContex
relation.d->mReferencedLayer = qobject_cast<QgsVectorLayer *>( referencedLayer );
relation.d->mRelationId = id;
relation.d->mRelationName = name;
if ( strength == QLatin1String( "Composition" ) )
{
relation.d->mRelationStrength = RelationStrength::Composition;
}
else
{
relation.d->mRelationStrength = RelationStrength::Association;
}
relation.d->mRelationStrength = qgsEnumKeyToValue<QgsRelation::RelationStrength>( strength, RelationStrength::Association );

QDomNodeList references = elem.elementsByTagName( QStringLiteral( "fieldRef" ) );
for ( int i = 0; i < references.size(); ++i )
Expand Down

0 comments on commit 8471d5a

Please sign in to comment.