Skip to content
Permalink
Browse files

follow up

  • Loading branch information
3nids committed Sep 10, 2020
1 parent e87ba45 commit 8471d5ae4ea22d54da16b8db60350a917debb459
Showing with 1 addition and 8 deletions.
  1. +1 −8 src/core/qgsrelation.cpp
@@ -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 )

0 comments on commit 8471d5a

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