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
This commit is contained in:
Seth Hillbrand 2019-08-21 22:50:26 -07:00
parent 85df994eda
commit 77488e379c
1 changed files with 1 additions and 1 deletions

View File

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