Loading pcbnew/tools/point_editor.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -210,14 +210,12 @@ int POINT_EDITOR::OnSelectionChange( TOOL_EVENT& aEvent ) if( point ) if( point ) { { controls->ShowCursor( true ); controls->ShowCursor( true ); controls->SetAutoPan( true ); controls->SetSnapping( true ); controls->SetSnapping( true ); controls->ForceCursorPosition( true, point->GetPosition() ); controls->ForceCursorPosition( true, point->GetPosition() ); } } else else { { controls->ShowCursor( false ); controls->ShowCursor( false ); controls->SetAutoPan( false ); controls->SetSnapping( false ); controls->SetSnapping( false ); controls->ForceCursorPosition( false ); controls->ForceCursorPosition( false ); } } Loading @@ -240,6 +238,7 @@ int POINT_EDITOR::OnSelectionChange( TOOL_EVENT& aEvent ) editFrame->SaveCopyInUndoList( selection.items, UR_CHANGED ); editFrame->SaveCopyInUndoList( selection.items, UR_CHANGED ); controls->ForceCursorPosition( false ); controls->ForceCursorPosition( false ); m_original = *m_dragPoint; // Save the original position m_original = *m_dragPoint; // Save the original position controls->SetAutoPan( true ); modified = true; modified = true; } } Loading Loading @@ -267,6 +266,7 @@ int POINT_EDITOR::OnSelectionChange( TOOL_EVENT& aEvent ) else if( evt->IsMouseUp( BUT_LEFT ) ) else if( evt->IsMouseUp( BUT_LEFT ) ) { { controls->SetAutoPan( false ); setAltConstraint( false ); setAltConstraint( false ); modified = false; modified = false; } } Loading Loading
pcbnew/tools/point_editor.cpp +2 −2 Original line number Original line Diff line number Diff line Loading @@ -210,14 +210,12 @@ int POINT_EDITOR::OnSelectionChange( TOOL_EVENT& aEvent ) if( point ) if( point ) { { controls->ShowCursor( true ); controls->ShowCursor( true ); controls->SetAutoPan( true ); controls->SetSnapping( true ); controls->SetSnapping( true ); controls->ForceCursorPosition( true, point->GetPosition() ); controls->ForceCursorPosition( true, point->GetPosition() ); } } else else { { controls->ShowCursor( false ); controls->ShowCursor( false ); controls->SetAutoPan( false ); controls->SetSnapping( false ); controls->SetSnapping( false ); controls->ForceCursorPosition( false ); controls->ForceCursorPosition( false ); } } Loading @@ -240,6 +238,7 @@ int POINT_EDITOR::OnSelectionChange( TOOL_EVENT& aEvent ) editFrame->SaveCopyInUndoList( selection.items, UR_CHANGED ); editFrame->SaveCopyInUndoList( selection.items, UR_CHANGED ); controls->ForceCursorPosition( false ); controls->ForceCursorPosition( false ); m_original = *m_dragPoint; // Save the original position m_original = *m_dragPoint; // Save the original position controls->SetAutoPan( true ); modified = true; modified = true; } } Loading Loading @@ -267,6 +266,7 @@ int POINT_EDITOR::OnSelectionChange( TOOL_EVENT& aEvent ) else if( evt->IsMouseUp( BUT_LEFT ) ) else if( evt->IsMouseUp( BUT_LEFT ) ) { { controls->SetAutoPan( false ); setAltConstraint( false ); setAltConstraint( false ); modified = false; modified = false; } } Loading