mirror of
https://github.com/qgis/QGIS.git
synced 2025-06-21 00:03:03 -04:00
Update map overview when linked map rotation changes
This commit is contained in:
parent
5016a452e0
commit
8bc57f773c
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user