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:
parent
efc0325e14
commit
25f6483488
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue