From 0046a08693e5281da8748ab284d91aead5a129a0 Mon Sep 17 00:00:00 2001 From: Salvatore Larosa Date: Wed, 28 May 2014 16:03:11 +0200 Subject: [PATCH] [identify] skip layer with no geometry --- src/gui/qgsmaptoolidentify.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/qgsmaptoolidentify.cpp b/src/gui/qgsmaptoolidentify.cpp index a30aa13b1c4..a4d2e4bce9f 100644 --- a/src/gui/qgsmaptoolidentify.cpp +++ b/src/gui/qgsmaptoolidentify.cpp @@ -264,7 +264,7 @@ bool QgsMapToolIdentify::identifyLayer( QList *results, QgsMapLa bool QgsMapToolIdentify::identifyVectorLayer( QList *results, QgsVectorLayer *layer, QgsPoint point ) { - if ( !layer ) + if ( !layer || !layer->hasGeometryType() ) return false; if ( layer->hasScaleBasedVisibility() &&