From 2ecb72da8494b5ba771504421cd275be6db1e949 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 10 Mar 2015 17:05:38 +0100 Subject: [PATCH] Fixed disappearing selected items when switching between GAL canvases. --- pcbnew/tools/selection_tool.cpp | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/pcbnew/tools/selection_tool.cpp b/pcbnew/tools/selection_tool.cpp index 45330c3d18..6aa3245c5e 100644 --- a/pcbnew/tools/selection_tool.cpp +++ b/pcbnew/tools/selection_tool.cpp @@ -64,6 +64,7 @@ public: } }; + SELECTION_TOOL::SELECTION_TOOL() : TOOL_INTERACTIVE( "pcbnew.InteractiveSelection" ), m_frame( NULL ), m_additive( false ), m_multiple( false ), @@ -87,16 +88,8 @@ SELECTION_TOOL::~SELECTION_TOOL() void SELECTION_TOOL::Reset( RESET_REASON aReason ) { - if( aReason == TOOL_BASE::MODEL_RELOAD ) - { - // Remove pointers to the selected items from containers - // without changing their properties (as they are already deleted) - m_selection.group->Clear(); - m_selection.clear(); - } - else - // Restore previous properties of selected items and remove them from containers - clearSelection(); + // Restore previous properties of selected items and remove them from containers + clearSelection(); m_frame = getEditFrame(); m_locked = true;