Skip to content

Commit 3232d36

Browse files
authoredApr 24, 2019
Merge pull request #9845 from qgis/backport-9809-to-release-3_6
[Backport release-3_6] Add @snapping_results variable for points
2 parents 50692fc + 6fcde4d commit 3232d36

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/app/qgsmaptooldigitizefeature.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,13 @@ 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
215+
addVertex( e->mapPoint(), e->mapPointMatch() );
216+
214217
digitized( f );
215218

219+
stopCapturing();
220+
216221
// we are done with digitizing for now so instruct advanced digitizing dock to reset its CAD points
217222
cadDockWidget()->clearPoints();
218223
}

0 commit comments

Comments
 (0)
Please sign in to comment.