From 1b208e0a5e8d6725cc42daf447a23319c337d24d Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Fri, 3 Jul 2015 20:58:12 +0200 Subject: [PATCH] Display info in the message panel if only one item was selected using area selection tool. --- pcbnew/tools/selection_tool.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pcbnew/tools/selection_tool.cpp b/pcbnew/tools/selection_tool.cpp index d824fe6fdc..1369bb9ed8 100644 --- a/pcbnew/tools/selection_tool.cpp +++ b/pcbnew/tools/selection_tool.cpp @@ -432,8 +432,10 @@ bool SELECTION_TOOL::selectMultiple() } } - // Do not display information about selected item,as there is more than one - m_frame->SetCurItem( NULL ); + if( m_selection.Size() == 1 ) + m_frame->SetCurItem( m_selection.Item( 0 ) ); + else + m_frame->SetCurItem( NULL ); if( !m_selection.Empty() ) {