mirror of https://github.com/odrling/Aegisub
Fix crash when setting hotkeys
Originally committed to SVN as r5820.
This commit is contained in:
parent
abaf8fc2c4
commit
e9e02539ac
|
@ -111,7 +111,7 @@ public:
|
|||
if (col == 0) {
|
||||
wxArrayString toks = wxSplit(variant.GetString(), '-');
|
||||
std::vector<std::string> keys;
|
||||
keys.reserve(toks.size());
|
||||
keys.resize(toks.size());
|
||||
for (size_t i = 0; i < toks.size(); ++i)
|
||||
keys[i] = STD_STR(toks[i]);
|
||||
combo = Combo(combo.Context(), combo.CmdName(), keys);
|
||||
|
|
Loading…
Reference in New Issue