Skip to content
Permalink
Browse files

Update map overview when linked map rotation changes

  • Loading branch information
nyalldawson committed Oct 21, 2017
1 parent 5016a45 commit 8bc57f773ce843042b4671cbfa9a81ccc9459ce2
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/layout/qgslayoutitemmapoverview.cpp
@@ -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.
You can’t perform that action at this time.