Skip to content

Commit 74d30b9

Browse files
authored
Merge pull request #9809 from m-kuhn/snapping_results_for_points
Add @snapping_results variable for points
2 parents a744ddb + 9a7303b commit 74d30b9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/qgsmaptooldigitizefeature.cpp

+5
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)