We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9f683d commit 88ccb88Copy full SHA for 88ccb88
src/gui/qgsmapcanvasannotationitem.cpp
@@ -124,16 +124,13 @@ void QgsMapCanvasAnnotationItem::onCanvasLayersChanged()
124
{
125
setVisible( false );
126
}
127
+ else if ( !mAnnotation->mapLayer() )
128
+ {
129
+ setVisible( true );
130
+ }
131
else
132
- if ( !mAnnotation->mapLayer() )
- {
- setVisible( true );
- }
133
- else
134
135
- setVisible( mMapCanvas->mapSettings().layers().contains( mAnnotation->mapLayer() ) );
136
+ setVisible( mMapCanvas->mapSettings().layers().contains( mAnnotation->mapLayer() ) );
137
138
139
0 commit comments