mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Merge pull request #1401 from slarosa/identify_nogeometry
[identify] skip layer with no geometry
This commit is contained in:
commit
5754841c1a
@ -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