From 1855db54933bf6730a846e97dc3c0bce523f073b Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 13 Nov 2014 14:11:26 +0100 Subject: [PATCH] pcbnew: Fix persistent multiple items selection box that stays after selecting a polygon/line (GAL). --- pcbnew/tools/point_editor.cpp | 1 + pcbnew/tools/selection_tool.cpp | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/tools/point_editor.cpp b/pcbnew/tools/point_editor.cpp index 8951cb3f25..d409804b26 100644 --- a/pcbnew/tools/point_editor.cpp +++ b/pcbnew/tools/point_editor.cpp @@ -308,6 +308,7 @@ int POINT_EDITOR::OnSelectionChange( TOOL_EVENT& aEvent ) controls->SetAutoPan( false ); setAltConstraint( false ); modified = false; + m_toolMgr->PassEvent(); } else if( evt->IsCancel() ) diff --git a/pcbnew/tools/selection_tool.cpp b/pcbnew/tools/selection_tool.cpp index 8b6eac6b42..616b1c35fb 100644 --- a/pcbnew/tools/selection_tool.cpp +++ b/pcbnew/tools/selection_tool.cpp @@ -348,9 +348,6 @@ bool SELECTION_TOOL::selectMultiple() if( evt->IsMouseUp( BUT_LEFT ) ) { - // End drawing the selection box - m_selArea->ViewSetVisible( false ); - // Mark items within the selection box as selected std::vector selectedItems; BOX2I selectionBox = m_selArea->ViewBBox(); @@ -384,6 +381,8 @@ bool SELECTION_TOOL::selectMultiple() } } + // Stop drawing the selection box + m_selArea->ViewSetVisible( false ); view->Remove( m_selArea ); m_multiple = false; // Multiple selection mode is inactive getViewControls()->SetAutoPan( false );