Skip to content
Permalink
Browse files

A bit less nesting

  • Loading branch information
m-kuhn committed Sep 24, 2018
1 parent f9f683d commit 88ccb8813f7b7c3712829fe28f74cb76048a998b
Showing with 5 additions and 8 deletions.
  1. +5 −8 src/gui/qgsmapcanvasannotationitem.cpp
@@ -124,16 +124,13 @@ void QgsMapCanvasAnnotationItem::onCanvasLayersChanged()
{
setVisible( false );
}
else if ( !mAnnotation->mapLayer() )
{
setVisible( true );
}
else
{
if ( !mAnnotation->mapLayer() )
{
setVisible( true );
}
else
{
setVisible( mMapCanvas->mapSettings().layers().contains( mAnnotation->mapLayer() ) );
}
setVisible( mMapCanvas->mapSettings().layers().contains( mAnnotation->mapLayer() ) );
}
}

0 comments on commit 88ccb88

Please sign in to comment.
You can’t perform that action at this time.