Skip to content

Commit 8bc57f7

Browse files
committed
Update map overview when linked map rotation changes
1 parent 5016a45 commit 8bc57f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/layout/qgslayoutitemmapoverview.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ void QgsLayoutItemMapOverview::setFrameMapUuid( const QString &mapId )
217217
if ( QgsLayoutItemMap *map = frameMap() )
218218
{
219219
disconnect( map, &QgsLayoutItemMap::extentChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
220+
disconnect( map, &QgsLayoutItemMap::mapRotationChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
220221
}
221222
mFrameMapId = mapId;
222223
//connect to new map signals
@@ -248,6 +249,7 @@ void QgsLayoutItemMapOverview::connectSignals()
248249
if ( QgsLayoutItemMap *map = frameMap() )
249250
{
250251
connect( map, &QgsLayoutItemMap::extentChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
252+
connect( map, &QgsLayoutItemMap::mapRotationChanged, this, &QgsLayoutItemMapOverview::overviewExtentChanged );
251253
}
252254
}
253255

0 commit comments

Comments
 (0)