Skip to content

Commit 9a7303b

Browse files
authored
Add a comment to explain the reason for the code
1 parent a0f450d commit 9a7303b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/qgsmaptooldigitizefeature.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ void QgsMapToolDigitizeFeature::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
211211
f.setGeometry( g );
212212
f.setValid( true );
213213

214+
// The snapping result needs to be added so it's available in the @snapping_results variable of default value etc. expression contexts
214215
addVertex( e->mapPoint(), e->mapPointMatch() );
215216

216217
digitized( f );

0 commit comments

Comments
 (0)