Skip to content
Permalink
Browse files

Merge pull request #9809 from m-kuhn/snapping_results_for_points

Add @snapping_results variable for points
  • Loading branch information
m-kuhn committed Apr 23, 2019
2 parents a744ddb + 9a7303b commit 74d30b95b968b386c4bad257206acb14c59efd5c
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgsmaptooldigitizefeature.cpp
@@ -211,8 +211,13 @@ 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 );

stopCapturing();

// we are done with digitizing for now so instruct advanced digitizing dock to reset its CAD points
cadDockWidget()->clearPoints();
}

0 comments on commit 74d30b9

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