The nodetool only needs to consider spatial layers

This commit is contained in:
Matthias Kuhn 2017-06-16 15:52:08 +02:00
parent f237c6cdbf
commit a77f791467

View File

@ -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 );