mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-20 08:07:49 -05:00
Add PanelScroll Value Check (#931)
Prevents ArgumentOutOfRangeException.
This commit is contained in:
committed by
Kaphotics
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:
|
||||
|
||||
Reference in New Issue
Block a user