From 79d353671bce4fcba1bbf3125261fcbaff08f295 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 1 Apr 2014 14:13:00 +0200 Subject: [PATCH] Fixed autopanning for POINT_EDITOR. --- pcbnew/tools/point_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/tools/point_editor.cpp b/pcbnew/tools/point_editor.cpp index 1cfdb0a001..4521607434 100644 --- a/pcbnew/tools/point_editor.cpp +++ b/pcbnew/tools/point_editor.cpp @@ -210,14 +210,12 @@ int POINT_EDITOR::OnSelectionChange( TOOL_EVENT& aEvent ) if( point ) { controls->ShowCursor( true ); - controls->SetAutoPan( true ); controls->SetSnapping( true ); controls->ForceCursorPosition( true, point->GetPosition() ); } else { controls->ShowCursor( false ); - controls->SetAutoPan( false ); controls->SetSnapping( false ); controls->ForceCursorPosition( false ); } @@ -240,6 +238,7 @@ int POINT_EDITOR::OnSelectionChange( TOOL_EVENT& aEvent ) editFrame->SaveCopyInUndoList( selection.items, UR_CHANGED ); controls->ForceCursorPosition( false ); m_original = *m_dragPoint; // Save the original position + controls->SetAutoPan( true ); modified = true; } @@ -267,6 +266,7 @@ int POINT_EDITOR::OnSelectionChange( TOOL_EVENT& aEvent ) else if( evt->IsMouseUp( BUT_LEFT ) ) { + controls->SetAutoPan( false ); setAltConstraint( false ); modified = false; }