Skip to content

Commit 6076451

Browse files
committedJun 29, 2016
Only insert segment snap points in the layer they belong
Fixes #13952
1 parent 843d17e commit 6076451

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/app/nodetool/qgsmaptoolnodetool.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,11 @@ int QgsMapToolNodeTool::insertSegmentVerticesForSnap( const QList<QgsSnappingRes
762762
QList<QgsSnappingResult>::const_iterator it = snapResults.constBegin();
763763
for ( ; it != snapResults.constEnd(); ++it )
764764
{
765+
//skip if snappingResult is in a different layer
766+
//See http://hub.qgis.org/issues/13952#note-29
767+
if ( it->layer != editedLayer )
768+
continue;
769+
765770
//skip if id is in skip list or we have already added a vertex to a feature
766771
if ( skipFids.contains( it->snappedAtGeometry ) || addedFeatures.contains( it->snappedAtGeometry ) )
767772
continue;

0 commit comments

Comments
 (0)
Please sign in to comment.