Fix crash when setting hotkeys

Originally committed to SVN as r5820.
This commit is contained in:
Thomas Goyne 2011-11-06 17:18:02 +00:00
parent abaf8fc2c4
commit e9e02539ac
1 changed files with 1 additions and 1 deletions

View File

@ -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);