Skip to content

Commit a77f791

Browse files
committed
The nodetool only needs to consider spatial layers
1 parent f237c6c commit a77f791

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/app/nodetool/qgsnodetool.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ void QgsNodeTool::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
421421
Q_FOREACH ( QgsMapLayer *layer, canvas()->layers() )
422422
{
423423
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( layer );
424-
if ( !vlayer || !vlayer->isEditable() )
424+
if ( !vlayer || !vlayer->isEditable() || !vlayer->isSpatial() )
425425
continue;
426426

427427
QgsRectangle layerRect = toLayerCoordinates( vlayer, map_rect );

0 commit comments

Comments
 (0)