Skip to content

Commit

Permalink
Newly created annotation layers should inherit project CRS
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 22, 2021
1 parent c0daa50 commit 6212125
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -8773,6 +8773,7 @@ void QgisApp::createAnnotationLayer()
{
QgsAnnotationLayer::LayerOptions options( QgsProject::instance()->transformContext() );
QgsAnnotationLayer *layer = new QgsAnnotationLayer( tr( "Annotations" ), options );
layer->setCrs( QgsProject::instance()->crs() );

// layer should be created at top of layer tree
QgsProject::instance()->addMapLayer( layer, false );
Expand Down

0 comments on commit 6212125

Please sign in to comment.