Don't wrap-around before first entry.
This commit is contained in:
parent
2f0b8eb5e9
commit
d59c5687db
|
@ -95,7 +95,7 @@ bool EDA_VIEW_SWITCHER::TryBefore( wxEvent& aEvent )
|
||||||
|
|
||||||
if( wxGetKeyState( WXK_SHIFT ) )
|
if( wxGetKeyState( WXK_SHIFT ) )
|
||||||
{
|
{
|
||||||
if( --idx <= 0 )
|
if( --idx < 0 )
|
||||||
m_listBox->SetSelection( (int) m_listBox->GetCount() - 1 );
|
m_listBox->SetSelection( (int) m_listBox->GetCount() - 1 );
|
||||||
else
|
else
|
||||||
m_listBox->SetSelection( idx );
|
m_listBox->SetSelection( idx );
|
||||||
|
|
Loading…
Reference in New Issue