Skip to content

Commit 0046a08

Browse files
committed
[identify] skip layer with no geometry
1 parent 232a8d7 commit 0046a08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgsmaptoolidentify.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ bool QgsMapToolIdentify::identifyLayer( QList<IdentifyResult> *results, QgsMapLa
264264

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

270270
if ( layer->hasScaleBasedVisibility() &&

0 commit comments

Comments
 (0)