forked from mia/Aegisub
Use the correct upper bound for restoring the font collector modes
This commit is contained in:
parent
e8cdfc57a9
commit
f481a7f5fb
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ DialogFontsCollector::DialogFontsCollector(agi::Context *c)
|
|||
#endif
|
||||
};
|
||||
collection_mode = new wxRadioBox(this, -1, _("Action"), wxDefaultPosition, wxDefaultSize, countof(modes), modes, 1);
|
||||
collection_mode->SetSelection(mid<int>(0, OPT_GET("Tool/Fonts Collector/Action")->GetInt(), 4));
|
||||
collection_mode->SetSelection(mid<int>(0, OPT_GET("Tool/Fonts Collector/Action")->GetInt(), countof(modes)));
|
||||
|
||||
if (c->path->Decode("?script") == "?script")
|
||||
collection_mode->Enable(2, false);
|
||||
|
|
Loading…
Reference in a new issue