Skip to content

Commit

Permalink
[identify] skip layer with no geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed May 28, 2014
1 parent 232a8d7 commit 0046a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsmaptoolidentify.cpp
Expand Up @@ -264,7 +264,7 @@ bool QgsMapToolIdentify::identifyLayer( QList<IdentifyResult> *results, QgsMapLa

bool QgsMapToolIdentify::identifyVectorLayer( QList<IdentifyResult> *results, QgsVectorLayer *layer, QgsPoint point )
{
if ( !layer )
if ( !layer || !layer->hasGeometryType() )
return false;

if ( layer->hasScaleBasedVisibility() &&
Expand Down

0 comments on commit 0046a08

Please sign in to comment.