Allow snapping in pickReferencePoint

Fixes https://gitlab.com/kicad/code/kicad/issues/9354
This commit is contained in:
Seth Hillbrand 2021-10-10 08:52:35 -07:00
parent 62cb5d9354
commit 93bbad6acf
1 changed files with 3 additions and 0 deletions

View File

@ -2347,6 +2347,9 @@ bool EDIT_TOOL::pickReferencePoint( const wxString& aTooltip, const wxString& aS
m_statusPopup->SetText( aTooltip ); m_statusPopup->SetText( aTooltip );
/// This allow the option of snapping in the tool
picker->SetSnapping( true );
picker->SetClickHandler( picker->SetClickHandler(
[&]( const VECTOR2D& aPoint ) -> bool [&]( const VECTOR2D& aPoint ) -> bool
{ {