[identify] skip layer with no geometry

This commit is contained in:
Salvatore Larosa 2014-05-28 16:03:11 +02:00
parent 232a8d7ec9
commit 0046a08693

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