Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default new layout map rotation to canvas map rotation
Browse files Browse the repository at this point in the history
nyalldawson authored and github-actions[bot] committed Aug 16, 2022
1 parent 1512d35 commit fa69bdb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/layout/qgslayoutguiutils.cpp
Original file line number Diff line number Diff line change
@@ -127,6 +127,7 @@ void QgsLayoutGuiUtils::registerGuiForKnownItemTypes( QgsMapCanvas *mapCanvas )

if ( mapCanvas )
{
map->setMapRotation( mapCanvas->rotation() );
map->zoomToExtent( mapCanvas->mapSettings().visibleExtent() );
}

0 comments on commit fa69bdb

Please sign in to comment.