mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
The nodetool only needs to consider spatial layers
This commit is contained in:
parent
f237c6cdbf
commit
a77f791467
@ -421,7 +421,7 @@ void QgsNodeTool::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
|
||||
Q_FOREACH ( QgsMapLayer *layer, canvas()->layers() )
|
||||
{
|
||||
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( layer );
|
||||
if ( !vlayer || !vlayer->isEditable() )
|
||||
if ( !vlayer || !vlayer->isEditable() || !vlayer->isSpatial() )
|
||||
continue;
|
||||
|
||||
QgsRectangle layerRect = toLayerCoordinates( vlayer, map_rect );
|
||||
|
Loading…
x
Reference in New Issue
Block a user