Skip to content

Commit

Permalink
Indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 21, 2016
1 parent 77750ad commit 86feb6d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/qgsrelation.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -314,17 +314,17 @@ void QgsRelation::updateRelationStatus()
{ {
QgsDebugMsg( "Invalid relation: no ID" ); QgsDebugMsg( "Invalid relation: no ID" );
mValid = false; mValid = false;
} }
else else
{ {
if ( !mReferencedLayer ) if ( !mReferencedLayer )
{ {
QgsDebugMsg( QString("Invalid relation: referenced layer does not exist. ID: %1").arg(mReferencedLayerId) ); QgsDebugMsg( QString( "Invalid relation: referenced layer does not exist. ID: %1" ).arg( mReferencedLayerId ) );
mValid = false; mValid = false;
} }
else if ( !mReferencingLayer ) else if ( !mReferencingLayer )
{ {
QgsDebugMsg( QString("Invalid relation: referencing layer does not exist. ID: %2").arg(mReferencingLayerId) ); QgsDebugMsg( QString( "Invalid relation: referencing layer does not exist. ID: %2" ).arg( mReferencingLayerId ) );
mValid = false; mValid = false;
} }
else else
Expand All @@ -337,15 +337,15 @@ void QgsRelation::updateRelationStatus()


Q_FOREACH ( const FieldPair& fieldPair, mFieldPairs ) Q_FOREACH ( const FieldPair& fieldPair, mFieldPairs )
{ {
if ( -1 == mReferencingLayer->fieldNameIndex( fieldPair.first )) if ( -1 == mReferencingLayer->fieldNameIndex( fieldPair.first ) )
{ {
QgsDebugMsg( QString("Invalid relation: field %1 does not exist in referencing layer %2").arg(fieldPair.first, mReferencingLayer->name()) ); QgsDebugMsg( QString( "Invalid relation: field %1 does not exist in referencing layer %2" ).arg( fieldPair.first, mReferencingLayer->name() ) );
mValid = false; mValid = false;
break; break;
} }
else if ( -1 == mReferencedLayer->fieldNameIndex( fieldPair.second ) ) else if ( -1 == mReferencedLayer->fieldNameIndex( fieldPair.second ) )
{ {
QgsDebugMsg( QString("Invalid relation: field %1 does not exist in referencedg layer %2").arg(fieldPair.second, mReferencedLayer->name()) ); QgsDebugMsg( QString( "Invalid relation: field %1 does not exist in referencedg layer %2" ).arg( fieldPair.second, mReferencedLayer->name() ) );
mValid = false; mValid = false;
break; break;
} }
Expand Down

0 comments on commit 86feb6d

Please sign in to comment.