Skip to content

Commit

Permalink
QgsLayoutItemMap::connectUpdateSlot(): move 2 signal connections unde…
Browse files Browse the repository at this point in the history
…r a 'if ( project )' check
  • Loading branch information
rouault committed May 29, 2020
1 parent c44a34d commit 762174d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/layout/qgslayoutitemmap.cpp
Expand Up @@ -1878,16 +1878,16 @@ void QgsLayoutItemMap::connectUpdateSlot()
{
invalidateCache();
} );

connect( project->mapThemeCollection(), &QgsMapThemeCollection::mapThemeChanged, this, &QgsLayoutItemMap::mapThemeChanged );
connect( project->mapThemeCollection(), &QgsMapThemeCollection::mapThemeRenamed, this, &QgsLayoutItemMap::currentMapThemeRenamed );
}
connect( mLayout, &QgsLayout::refreshed, this, &QgsLayoutItemMap::invalidateCache );
connect( &mLayout->renderContext(), &QgsLayoutRenderContext::predefinedScalesChanged, this, [ = ]
{
if ( mAtlasScalingMode == Predefined )
updateAtlasFeature();
} );

connect( project->mapThemeCollection(), &QgsMapThemeCollection::mapThemeChanged, this, &QgsLayoutItemMap::mapThemeChanged );
connect( project->mapThemeCollection(), &QgsMapThemeCollection::mapThemeRenamed, this, &QgsLayoutItemMap::currentMapThemeRenamed );
}

QTransform QgsLayoutItemMap::layoutToMapCoordsTransform() const
Expand Down

0 comments on commit 762174d

Please sign in to comment.