From 2db3f859f7ee05423547a4b9ffc46d3fa7f7ebcf Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Fri, 5 Oct 2018 04:55:50 -0700 Subject: [PATCH] GRID_HELPER: Show snap indicator when would snap This shows the snap indicator even when the item we are snapping to occurs on a grid point, giving the user an indication that the point is correctly connected. --- pcbnew/tools/grid_helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/tools/grid_helper.cpp b/pcbnew/tools/grid_helper.cpp index ce58c47f82..fe19b32b0a 100644 --- a/pcbnew/tools/grid_helper.cpp +++ b/pcbnew/tools/grid_helper.cpp @@ -283,7 +283,7 @@ VECTOR2I GRID_HELPER::BestSnapAnchor( const VECTOR2I& aOrigin, const LSET& aLaye { double snapDist = nearest->Distance( aOrigin ); - if( nearest && snapDist < gridDist ) + if( nearest && snapDist <= gridDist ) { m_viewSnapPoint.SetPosition( nearest->pos ); m_frame->GetGalCanvas()->GetView()->SetVisible( &m_viewSnapPoint, true );