Correctly set parent for main annotation layer to avoid leak

This commit is contained in:
Nyall Dawson 2020-09-03 08:29:20 +10:00
parent d090077ba6
commit 8ece6edbbe

View File

@ -435,6 +435,7 @@ QgsProject::QgsProject( QObject *parent )
Q_NOWARN_DEPRECATED_POP
mMainAnnotationLayer = new QgsAnnotationLayer( QObject::tr( "Annotations" ), QgsAnnotationLayer::LayerOptions( mTransformContext ) );
mMainAnnotationLayer->setParent( this );
}