Skip to content
Permalink
Browse files
Update map overview when linked map rotation changes
  • Loading branch information
nyalldawson committed Nov 7, 2017
1 parent 5016a45 commit 8bc57f773ce843042b4671cbfa9a81ccc9459ce2
Showing 1 changed file with 2 additions and 0 deletions.
@@ -217,6 +217,7 @@ void QgsLayoutItemMapOverview::setFrameMapUuid( const QString &mapId )
if ( QgsLayoutItemMap *map = frameMap() )
{
disconnect( map, &QgsLayoutItemMap::extentChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
disconnect( map, &QgsLayoutItemMap::mapRotationChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
}
mFrameMapId = mapId;
//connect to new map signals
@@ -248,6 +249,7 @@ void QgsLayoutItemMapOverview::connectSignals()
if ( QgsLayoutItemMap *map = frameMap() )
{
connect( map, &QgsLayoutItemMap::extentChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
connect( map, &QgsLayoutItemMap::mapRotationChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
}
}

0 comments on commit 8bc57f7

Please sign in to comment.