Skip to content

Commit

Permalink
Add a comment to explain the reason for the code
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 17, 2019
1 parent a0f450d commit 9a7303b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgsmaptooldigitizefeature.cpp
Expand Up @@ -211,6 +211,7 @@ void QgsMapToolDigitizeFeature::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
f.setGeometry( g );
f.setValid( true );

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

digitized( f );
Expand Down

0 comments on commit 9a7303b

Please sign in to comment.