Skip to content

Commit

Permalink
fixes reading of legacy setting of WMS/WFS exclusion for joined fields (
Browse files Browse the repository at this point in the history
#39714)

fixes #39699
  • Loading branch information
3nids authored Oct 30, 2020
1 parent f5ba02e commit 7ab1f19
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/qgsvectorlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2363,8 +2363,10 @@ bool QgsVectorLayer::readSymbology( const QDomNode &layerNode, QString &errorMes
for ( int i = 0; i < attributeNodeList.size(); ++i )
{
QString fieldName = attributeNodeList.at( i ).toElement().text();
int index = mFields.indexFromName( fieldName );
setFieldConfigurationFlag( index, config.second, true );
if ( !mFieldConfigurationFlags.contains( fieldName ) )
mFieldConfigurationFlags[fieldName] = config.second;
else
mFieldConfigurationFlags[fieldName].setFlag( config.second, true );
}
}
}
Expand Down

0 comments on commit 7ab1f19

Please sign in to comment.