Skip to content
Browse files
[maptips] do not render tips if the layer is not rendered
  • Loading branch information
nirvn committed Jul 19, 2018
1 parent 68290a2 commit 8f5d96884734939c17141e845ca96d926323efc8
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgsmaptip.cpp
@@ -57,6 +57,12 @@ void QgsMapTip::showMapTip( QgsMapLayer *pLayer,
// we only want the first qualifying feature and we will only display the
// field defined as the label field in the layer configuration file/database

// Do not render map tips if the layer is not visible
if ( !pMapCanvas->layers().contains( pLayer ) )

// Show the maptip on the canvas
QString tipText, lastTipText, tipHtml, bodyStyle, containerStyle,
backgroundColor, strokeColor;

0 comments on commit 8f5d968

Please sign in to comment.