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
#39715)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
qgis-bot and github-actions[bot] committed Oct 30, 2020
1 parent 82e6f24 commit f491c24
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 f491c24

Please sign in to comment.