mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-20 04:38:25 -05:00
Add PanelScroll Value Check (#931)
Prevents ArgumentOutOfRangeException.
This commit is contained in:
parent
13aa01ff99
commit
ad8f661863
|
|
@ -162,6 +162,8 @@ internal static int getIndex(ComboBox cb)
|
|||
public static void PanelScroll(object sender, ScrollEventArgs e)
|
||||
{
|
||||
var p = sender as Panel;
|
||||
if (e.NewValue < 0)
|
||||
return;
|
||||
switch (e.ScrollOrientation)
|
||||
{
|
||||
case ScrollOrientation.HorizontalScroll:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user