Skip to content
Permalink
Browse files
Ensure main annotation layer is correctly refreshed when triggerRepaint
is called on it
  • Loading branch information
nyalldawson committed Sep 7, 2021
1 parent 39263a4 commit d656baeb2489e6381ee2d65fdc7b549aa5a41f72
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/qgsmapcanvas.cpp
@@ -153,6 +153,7 @@ QgsMapCanvas::QgsMapCanvas( QWidget *parent )
connect( QgsProject::instance(), &QgsProject::writeProject,
this, &QgsMapCanvas::writeProject );

connect( QgsProject::instance()->mainAnnotationLayer(), &QgsMapLayer::repaintRequested, this, &QgsMapCanvas::layerRepaintRequested );
connect( QgsProject::instance()->mapThemeCollection(), &QgsMapThemeCollection::mapThemeChanged, this, &QgsMapCanvas::mapThemeChanged );
connect( QgsProject::instance()->mapThemeCollection(), &QgsMapThemeCollection::mapThemeRenamed, this, &QgsMapCanvas::mapThemeRenamed );
connect( QgsProject::instance()->mapThemeCollection(), &QgsMapThemeCollection::mapThemesChanged, this, &QgsMapCanvas::projectThemesChanged );

0 comments on commit d656bae

Please sign in to comment.