Skip to content

Commit 0046a08

Browse files
committedMay 28, 2014
[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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.