mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[identify] skip layer with no geometry
This commit is contained in:
parent
232a8d7ec9
commit
0046a08693
@ -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() &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user