OSDN Git Service
(root)
/
kancollesniffer
/
KancolleSniffer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a267c28
)
グループ設定が壊れているときに例外で落ちるのを直す
author
Kazuhiro Fujieda
<fujieda@users.osdn.me>
Tue, 2 Aug 2016 13:32:04 +0000
(22:32 +0900)
committer
Kazuhiro Fujieda
<fujieda@users.osdn.me>
Tue, 2 Aug 2016 13:32:04 +0000
(22:32 +0900)
KancolleSniffer/ShipListForm.cs
patch
|
blob
|
history
diff --git
a/KancolleSniffer/ShipListForm.cs
b/KancolleSniffer/ShipListForm.cs
index
300f0ad
..
5fe482e
100644
(file)
--- a/
KancolleSniffer/ShipListForm.cs
+++ b/
KancolleSniffer/ShipListForm.cs
@@
-464,9
+464,9
@@
namespace KancolleSniffer
checkBoxShipType.Checked = config.ShipType;
\r
ActiveControl = panelShipList;
\r
for (var i = 0; i < GroupCount; i++)
\r
- _groupSettings[i] =
config.ShipGroup.Count == 0
\r
- ? new HashSet<int>()
\r
- : new HashSet<int>(
config.ShipGroup[i]
);
\r
+ _groupSettings[i] =
i < config.ShipGroup.Count
\r
+ ? new HashSet<int>(
config.ShipGroup[i]
)
\r
+ : new HashSet<int>();
\r
comboBoxGroup.SelectedIndex = 0;
\r
if (config.Location.X == int.MinValue)
\r
return;
\r