Skip to content

Commit

Permalink
Update map overview when linked map rotation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 7, 2017
1 parent 5016a45 commit 8bc57f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/layout/qgslayoutitemmapoverview.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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 );
}
}

Expand Down

0 comments on commit 8bc57f7

Please sign in to comment.