Skip to content

Commit

Permalink
Update src/core/layout/qgslayoutitemlegend.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandro Pasotti <elpaso@itopen.it>
  • Loading branch information
2 people authored and nyalldawson committed Oct 10, 2024
1 parent 979ec2f commit 790e3c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutitemlegend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ void QgsLayoutItemLegend::setModelStyleOverrides( const QMap<QString, QString> &
if ( QgsLayerTree *rootGroup = mLegendModel->rootGroup() )
{
const QList< QgsLayerTreeLayer * > layers = rootGroup->findLayers();
for ( QgsLayerTreeLayer *nodeLayer : layers )
for ( QgsLayerTreeLayer *nodeLayer : std::as_const( layers ) )
mLegendModel->refreshLayerLegend( nodeLayer );
}
}
Expand Down

0 comments on commit 790e3c2

Please sign in to comment.