Skip to content

Commit

Permalink
Guard against invalid pointer access
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Oct 5, 2021
1 parent 09055d3 commit b10965d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layout/qgslayoutitemlegend.cpp
Expand Up @@ -971,7 +971,7 @@ bool QgsLayoutItemLegend::legendFilterOutAtlas() const

void QgsLayoutItemLegend::onAtlasFeature()
{
if ( !mLayout->reportContext().feature().isValid() )
if ( !mLayout || !mLayout->reportContext().feature().isValid() )
return;
mInAtlas = mFilterOutAtlas;
updateFilterByMap();
Expand Down

0 comments on commit b10965d

Please sign in to comment.