Skip to content

Commit

Permalink
Merge pull request #9845 from qgis/backport-9809-to-release-3_6
Browse files Browse the repository at this point in the history
[Backport release-3_6] Add @snapping_results variable for points
  • Loading branch information
m-kuhn committed Apr 24, 2019
2 parents 50692fc + 6fcde4d commit 3232d36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgsmaptooldigitizefeature.cpp
Expand Up @@ -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();
}
Expand Down

0 comments on commit 3232d36

Please sign in to comment.