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 9a28b51 commit 647ab4e947edec24b8babe51e188d95270275ea4
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 647ab4e

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