Skip to content

Commit

Permalink
Merge pull request #1401 from slarosa/identify_nogeometry
Browse files Browse the repository at this point in the history
[identify] skip layer with no geometry
  • Loading branch information
NathanW2 committed May 29, 2014
2 parents 5b61d1f + 0046a08 commit 5754841
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 5754841

Please sign in to comment.