diff --git a/pcbnew/tools/point_editor.cpp b/pcbnew/tools/point_editor.cpp index 950580ec35..6422295593 100644 --- a/pcbnew/tools/point_editor.cpp +++ b/pcbnew/tools/point_editor.cpp @@ -34,7 +34,6 @@ using namespace std::placeholders; #include "pcb_actions.h" #include "selection_tool.h" #include "point_editor.h" -#include "grid_helper.h" #include #include #include @@ -289,8 +288,6 @@ int POINT_EDITOR::OnSelectionChange( const TOOL_EVENT& aEvent ) KIGFX::VIEW_CONTROLS* controls = getViewControls(); KIGFX::VIEW* view = getView(); PCB_BASE_EDIT_FRAME* editFrame = getEditFrame(); - - GRID_HELPER grid( editFrame ); auto item = selection.Front(); m_editPoints = EDIT_POINTS_FACTORY::Make( item, getView()->GetGAL() ); @@ -344,10 +341,8 @@ int POINT_EDITOR::OnSelectionChange( const TOOL_EVENT& aEvent ) if( m_altConstraint ) m_altConstraint->Apply(); - else - m_editedPoint->ApplyConstraint(); - m_editedPoint->SetPosition( grid.Align( m_editedPoint->GetPosition() ) ); + m_editedPoint->ApplyConstraint(); updateItem(); updatePoints(); }