Skip to content
Permalink
Browse files

Only insert segment snap points in the layer they belong

Fixes #13952
  • Loading branch information
strk committed Jun 28, 2016
1 parent 843d17e commit 6076451a548d0077d50229ffca0e5be921755f2c
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/nodetool/qgsmaptoolnodetool.cpp
@@ -762,6 +762,11 @@ int QgsMapToolNodeTool::insertSegmentVerticesForSnap( const QList<QgsSnappingRes
QList<QgsSnappingResult>::const_iterator it = snapResults.constBegin();
for ( ; it != snapResults.constEnd(); ++it )
{
//skip if snappingResult is in a different layer
//See http://hub.qgis.org/issues/13952#note-29
if ( it->layer != editedLayer )
continue;

//skip if id is in skip list or we have already added a vertex to a feature
if ( skipFids.contains( it->snappedAtGeometry ) || addedFeatures.contains( it->snappedAtGeometry ) )
continue;

0 comments on commit 6076451

Please sign in to comment.
You can’t perform that action at this time.