Merge pull request #1401 from slarosa/identify_nogeometry

[identify] skip layer with no geometry
This commit is contained in:
Nathan Woodrow 2014-05-29 14:20:03 +10:00
commit 5754841c1a

View File

@ -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() &&