Skip to content
Permalink
Browse files
Fix possible null pointer dereference
  • Loading branch information
nyalldawson committed Mar 21, 2017
1 parent 545da60 commit eb742bd2cdb447afd822fcbaba39f37ae37bbf58
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/app/qgisapp.cpp
@@ -7066,11 +7066,10 @@ void QgisApp::setupLayoutManagerConnections()
connect( manager, &QgsLayoutManager::compositionAdded, this, [ = ]( const QString & name )
{
QgsComposition *c = QgsProject::instance()->layoutManager()->compositionByName( name );
if ( c )
{
mAtlasFeatureActions.insert( c, nullptr );
}
if ( !c )
return;

mAtlasFeatureActions.insert( c, nullptr );
connect( c, &QgsComposition::nameChanged, this, [this, c]( const QString & name )
{
QgsMapLayerAction *action = mAtlasFeatureActions.value( c );

0 comments on commit eb742bd

Please sign in to comment.