Use the overload of wxComboBox::Append that takes a wxArrayString rather than manually looping over the items

Originally committed to SVN as r6703.
This commit is contained in:
Thomas Goyne 2012-04-16 23:54:53 +00:00
parent e5540de2da
commit d83507c816
1 changed files with 1 additions and 3 deletions

View File

@ -245,9 +245,7 @@ DialogStyleEditor::DialogStyleEditor(wxWindow *parent, AssStyle *style, agi::Con
Alignment->SetSelection(AlignToControl(style->alignment));
// Fill font face list box
FontName->Freeze();
for (size_t i = 0; i < fontList.size(); i++) {
FontName->Append(fontList[i]);
}
FontName->Append(fontList);
FontName->SetValue(style->font);
FontName->Thaw();