gerbview: Ensure selection lives on top

Just picking the next layer will be overwritten when we have multiple
objects on the same layer in gerbview.  Move the selection to the top to
ensure it is out top-most layer when drawing.

Fixes: lp:1833868
* https://bugs.launchpad.net/kicad/+bug/1833868

(cherry picked from commit 77488e379c)
This commit is contained in:
Seth Hillbrand 2019-08-21 22:50:26 -07:00
parent efc0325e14
commit 25f6483488
1 changed files with 1 additions and 1 deletions

View File

@ -726,7 +726,7 @@ void GERBVIEW_SELECTION_TOOL::select( EDA_ITEM* aItem )
}
m_selection.Add( aItem );
getView()->Add( &m_selection );
getView()->Add( &m_selection, std::numeric_limits<int>::max() );
selectVisually( aItem );
if( m_selection.Size() == 1 )